Simple PHP Benchmark

String Manipulation

THis IS JUst A SIlly BEnchmark THat DOesn't DO ANything USeful.Here WE ARe JUst UPpercasing THe FIrst TWo CHaracters OF EVery WOrd IN THis LOng STring

Some defines

123456789abcdefghiA longer string just to mix it up a little bit12345678

Including 2 files

This is just a bunch of plain text in an include file.
This is just a bunch of plain text in an include file.
This is just a bunch of plain text in an include file.
This is just a bunch of plain text in an include file.
This is just a bunch of plain text in an include file.
This is just a bunch of plain text in an include file.
This is just a bunch of plain text in an include file.
This is just a bunch of plain text in an include file.
This is just a bunch of plain text in an include file.
This is just a bunch of plain text in an include file.
This is just a bunch of plain text in an include file.
This is just a bunch of plain text in an include file.
This is just a bunch of plain text in an include file.
This is just a bunch of plain text in an include file.
This is just a bunch of plain text in an include file.
This is just a bunch of plain text in an include file.
This is just a bunch of plain text in an include file.
This is just a bunch of plain text in an include file.
This is just a bunch of plain text in an include file.
This is just a bunch of plain text in an include file.
This is just a bunch of plain text in an include file.
This is just a bunch of plain text in an include file.
This is just a bunch of plain text in an include file.

for-loop and calling a function many times

200199198197196195194193192191190189188187186185184183182181180179178177176175174173172171170169168167166165164163162161160159158157156155154153152151150149148147146145144143142141140139138137136135134133132131130129128127126125124123122121120119118117116115114113112111110109108107106105104103102101101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200

Define and Instantiate an object and call some methods

test_var1 property set to test1
test_var2 property set to 123
test_var3 property set to Array
test_var4 property set to Array

object(test_class)#400 (4) {
  ["test_var1"]=>
  string(5) "test1"
  ["test_var2"]=>
  int(123)
  ["test_var3"]=>
  array(200) {
    [0]=>
    int(1)
    [1]=>
    int(2)
    [2]=>
    int(3)
    [3]=>
    int(4)
    [4]=>
    int(5)
    [5]=>
    int(6)
    [6]=>
    int(7)
    [7]=>
    int(8)
    [8]=>
    int(9)
    [9]=>
    int(10)
    [10]=>
    int(11)
    [11]=>
    int(12)
    [12]=>
    int(13)
    [13]=>
    int(14)
    [14]=>
    int(15)
    [15]=>
    int(16)
    [16]=>
    int(17)
    [17]=>
    int(18)
    [18]=>
    int(19)
    [19]=>
    int(20)
    [20]=>
    int(21)
    [21]=>
    int(22)
    [22]=>
    int(23)
    [23]=>
    int(24)
    [24]=>
    int(25)
    [25]=>
    int(26)
    [26]=>
    int(27)
    [27]=>
    int(28)
    [28]=>
    int(29)
    [29]=>
    int(30)
    [30]=>
    int(31)
    [31]=>
    int(32)
    [32]=>
    int(33)
    [33]=>
    int(34)
    [34]=>
    int(35)
    [35]=>
    int(36)
    [36]=>
    int(37)
    [37]=>
    int(38)
    [38]=>
    int(39)
    [39]=>
    int(40)
    [40]=>
    int(41)
    [41]=>
    int(42)
    [42]=>
    int(43)
    [43]=>
    int(44)
    [44]=>
    int(45)
    [45]=>
    int(46)
    [46]=>
    int(47)
    [47]=>
    int(48)
    [48]=>
    int(49)
    [49]=>
    int(50)
    [50]=>
    int(51)
    [51]=>
    int(52)
    [52]=>
    int(53)
    [53]=>
    int(54)
    [54]=>
    int(55)
    [55]=>
    int(56)
    [56]=>
    int(57)
    [57]=>
    int(58)
    [58]=>
    int(59)
    [59]=>
    int(60)
    [60]=>
    int(61)
    [61]=>
    int(62)
    [62]=>
    int(63)
    [63]=>
    int(64)
    [64]=>
    int(65)
    [65]=>
    int(66)
    [66]=>
    int(67)
    [67]=>
    int(68)
    [68]=>
    int(69)
    [69]=>
    int(70)
    [70]=>
    int(71)
    [71]=>
    int(72)
    [72]=>
    int(73)
    [73]=>
    int(74)
    [74]=>
    int(75)
    [75]=>
    int(76)
    [76]=>
    int(77)
    [77]=>
    int(78)
    [78]=>
    int(79)
    [79]=>
    int(80)
    [80]=>
    int(81)
    [81]=>
    int(82)
    [82]=>
    int(83)
    [83]=>
    int(84)
    [84]=>
    int(85)
    [85]=>
    int(86)
    [86]=>
    int(87)
    [87]=>
    int(88)
    [88]=>
    int(89)
    [89]=>
    int(90)
    [90]=>
    int(91)
    [91]=>
    int(92)
    [92]=>
    int(93)
    [93]=>
    int(94)
    [94]=>
    int(95)
    [95]=>
    int(96)
    [96]=>
    int(97)
    [97]=>
    int(98)
    [98]=>
    int(99)
    [99]=>
    int(100)
    [100]=>
    int(101)
    [101]=>
    int(102)
    [102]=>
    int(103)
    [103]=>
    int(104)
    [104]=>
    int(105)
    [105]=>
    int(106)
    [106]=>
    int(107)
    [107]=>
    int(108)
    [108]=>
    int(109)
    [109]=>
    int(110)
    [110]=>
    int(111)
    [111]=>
    int(112)
    [112]=>
    int(113)
    [113]=>
    int(114)
    [114]=>
    int(115)
    [115]=>
    int(116)
    [116]=>
    int(117)
    [117]=>
    int(118)
    [118]=>
    int(119)
    [119]=>
    int(120)
    [120]=>
    int(121)
    [121]=>
    int(122)
    [122]=>
    int(123)
    [123]=>
    int(124)
    [124]=>
    int(125)
    [125]=>
    int(126)
    [126]=>
    int(127)
    [127]=>
    int(128)
    [128]=>
    int(129)
    [129]=>
    int(130)
    [130]=>
    int(131)
    [131]=>
    int(132)
    [132]=>
    int(133)
    [133]=>
    int(134)
    [134]=>
    int(135)
    [135]=>
    int(136)
    [136]=>
    int(137)
    [137]=>
    int(138)
    [138]=>
    int(139)
    [139]=>
    int(140)
    [140]=>
    int(141)
    [141]=>
    int(142)
    [142]=>
    int(143)
    [143]=>
    int(144)
    [144]=>
    int(145)
    [145]=>
    int(146)
    [146]=>
    int(147)
    [147]=>
    int(148)
    [148]=>
    int(149)
    [149]=>
    int(150)
    [150]=>
    int(151)
    [151]=>
    int(152)
    [152]=>
    int(153)
    [153]=>
    int(154)
    [154]=>
    int(155)
    [155]=>
    int(156)
    [156]=>
    int(157)
    [157]=>
    int(158)
    [158]=>
    int(159)
    [159]=>
    int(160)
    [160]=>
    int(161)
    [161]=>
    int(162)
    [162]=>
    int(163)
    [163]=>
    int(164)
    [164]=>
    int(165)
    [165]=>
    int(166)
    [166]=>
    int(167)
    [167]=>
    int(168)
    [168]=>
    int(169)
    [169]=>
    int(170)
    [170]=>
    int(171)
    [171]=>
    int(172)
    [172]=>
    int(173)
    [173]=>
    int(174)
    [174]=>
    int(175)
    [175]=>
    int(176)
    [176]=>
    int(177)
    [177]=>
    int(178)
    [178]=>
    int(179)
    [179]=>
    int(180)
    [180]=>
    int(181)
    [181]=>
    int(182)
    [182]=>
    int(183)
    [183]=>
    int(184)
    [184]=>
    int(185)
    [185]=>
    int(186)
    [186]=>
    int(187)
    [187]=>
    int(188)
    [188]=>
    int(189)
    [189]=>
    int(190)
    [190]=>
    int(191)
    [191]=>
    int(192)
    [192]=>
    int(193)
    [193]=>
    int(194)
    [194]=>
    int(195)
    [195]=>
    int(196)
    [196]=>
    int(197)
    [197]=>
    int(198)
    [198]=>
    int(199)
    [199]=>
    int(200)
  }
  ["test_var4"]=>
  array(9) {
    [0]=>
    int(1)
    [1]=>
    int(2)
    [2]=>
    int(3)
    [3]=>
    int(4)
    [4]=>
    int(5)
    [5]=>
    int(6)
    [6]=>
    int(7)
    [7]=>
    int(8)
    [8]=>
    int(9)
  }
}

And finally a bit of XML and XSLT