3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php // casting vs. converting $a="123456789098734098710823740812038401982703489710289743089170289347019827034978"; $a*="123456789098734098710823740812038401982703489710289743089170289347019827034978"; $a*="123456789098734098710823740812038401982703489710289743089170289347019827034978"; $a*="12345678909873409871082374081203848768767896777556666689170289347019827034978"; const runs=10000000; $start=microtime(1); for ($i=1;$i<runs;$i++) if ($start+0); print 'Time: '.(microtime(1)-$start)."<br>\n"; $start=microtime(1); for ($i=1;$i<runs;$i++) if ((int)$start); print 'Time: '.(microtime(1)-$start);
Output for 7.1.0
Time: 0.22162699699402<br> Time: 0.2055561542511
Output for 7.0.14
Time: -0.18829703330994<br> Time: -0.20008206367493
Output for 7.0.6
Time: 0.19276094436646<br> Time: 0.21992993354797
Output for 7.0.5
Time: 0.19995999336243<br> Time: 0.21816301345825
Output for 7.0.4
Time: 0.17251706123352<br> Time: 0.20970392227173
Output for 7.0.3
Time: 0.17903900146484<br> Time: 0.24233293533325
Output for 7.0.2
Time: 0.19830298423767<br> Time: 0.26359510421753
Output for 7.0.1
Time: 0.19456887245178<br> Time: 0.25136590003967
Output for 7.0.0
Time: 0.18786001205444<br> Time: 0.26744794845581
Output for hhvm-3.12.0
Time: 1.1560909748077<br> Time: 1.0142920017242
Output for hhvm-3.10.0

Process exited with code 153.
Output for 5.6.28
Time: -0.30078601837158<br> Time: -0.3819899559021
Output for 5.6.21
Time: 0.37518906593323<br> Time: 0.42242193222046
Output for 5.6.20
Time: 0.39311504364014<br> Time: 0.42771601676941
Output for 5.6.19
Time: 0.38866901397705<br> Time: 0.44076204299927
Output for 5.6.18
Time: 0.38776206970215<br> Time: 0.43068099021912
Output for 5.6.17
Time: 0.3798680305481<br> Time: 0.42858195304871
Output for 5.6.16
Time: 0.37675499916077<br> Time: 0.42878293991089
Output for 5.6.15
Time: 0.39032912254333<br> Time: 0.42803502082825
Output for 5.6.14
Time: 0.3876039981842<br> Time: 0.42703199386597
Output for 5.6.13
Time: 0.37931990623474<br> Time: 0.42602300643921
Output for 5.6.12
Time: 0.38806700706482<br> Time: 0.4302020072937
Output for 5.6.11
Time: 0.38972115516663<br> Time: 0.43748021125793
Output for 5.6.10
Time: 0.38505101203918<br> Time: 0.42763185501099
Output for 5.6.9
Time: 0.40255999565125<br> Time: 0.46248006820679
Output for 5.6.8
Time: 0.35861897468567<br> Time: 0.43195199966431
Output for 5.5.35
Time: 0.39064407348633<br> Time: 0.42698407173157
Output for 5.5.34
Time: 0.39004921913147<br> Time: 0.42968416213989
Output for 5.5.33
Time: 0.39043092727661<br> Time: 0.4281530380249
Output for 5.5.32
Time: 0.39597797393799<br> Time: 0.42885303497314
Output for 5.5.31
Time: 0.38003182411194<br> Time: 0.42596101760864
Output for 5.5.30
Time: 0.46722388267517<br> Time: 0.50468492507935
Output for 5.5.29
Time: 0.38521695137024<br> Time: 0.43542504310608
Output for 5.5.28
Time: 0.38292789459229<br> Time: 0.43391299247742
Output for 5.5.27
Time: 0.38405394554138<br> Time: 0.43451380729675
Output for 5.5.26
Time: 0.38682889938354<br> Time: 0.42879986763
Output for 5.5.25
Time: 0.37071084976196<br> Time: 0.42716503143311
Output for 5.5.24
Time: 0.38584184646606<br> Time: 0.43991804122925
Output for 5.4.45
Time: 0.41340708732605<br> Time: 0.42279005050659
Output for 5.4.44
Time: 0.37690687179565<br> Time: 0.43749499320984
Output for 5.4.43
Time: 0.35450792312622<br> Time: 0.40672612190247
Output for 5.4.42
Time: 0.39574599266052<br> Time: 0.44544100761414
Output for 5.4.41
Time: 0.39504098892212<br> Time: 0.42799115180969
Output for 5.4.40
Time: 0.3574640750885<br> Time: 0.40694212913513
Output for 5.4.39
Time: 0.41826391220093<br> Time: 0.44356107711792
Output for 5.4.38
Time: 0.35633993148804<br> Time: 0.40845012664795
Output for 5.4.37
Time: 0.36468505859375<br> Time: 0.42444610595703
Output for 5.4.36
Time: 0.42740511894226<br> Time: 0.47343897819519
Output for 5.4.35
Time: 0.38193392753601<br> Time: 0.41821694374084
Output for 5.4.34
Time: 0.3782639503479<br> Time: 0.41891407966614
Output for 5.4.32
Time: 0.43232989311218<br> Time: 0.46552801132202
Output for 5.4.31
Time: 0.37415885925293<br> Time: 0.41505599021912
Output for 5.4.30
Time: 0.37390398979187<br> Time: 0.4163339138031
Output for 5.4.29
Time: 0.43259000778198<br> Time: 0.54313707351685
Output for 5.4.28
Time: 0.36088609695435<br> Time: 0.4055700302124
Output for 5.4.27
Time: 0.36226391792297<br> Time: 0.41409707069397
Output for 5.4.26
Time: 0.35794687271118<br> Time: 0.40809893608093
Output for 5.4.25
Time: 0.37802505493164<br> Time: 0.4166100025177
Output for 5.4.24
Time: 0.38439512252808<br> Time: 0.42005300521851
Output for 5.4.23
Time: 0.36634206771851<br> Time: 0.40857291221619
Output for 5.4.22
Time: 0.3785400390625<br> Time: 0.44568705558777
Output for 5.4.21
Time: 0.41523694992065<br> Time: 0.45451903343201
Output for 5.4.20
Time: 0.4142119884491<br> Time: 0.46264696121216
Output for 5.4.19
Time: 0.38647413253784<br> Time: 0.41834378242493
Output for 5.4.18
Time: 0.37613582611084<br> Time: 0.41646981239319
Output for 5.4.17
Time: 0.42561006546021<br> Time: 0.46883392333984
Output for 5.4.16
Time: 0.38376808166504<br> Time: 0.42214202880859
Output for 5.4.15
Time: 0.42256999015808<br> Time: 0.43736290931702
Output for 5.4.14
Time: 0.38369584083557<br> Time: 0.42301511764526
Output for 5.4.13
Time: 0.42281007766724<br> Time: 0.47465801239014
Output for 5.4.12
Time: 0.3865110874176<br> Time: 0.41861200332642
Output for 5.4.11
Time: 0.39259696006775<br> Time: 0.41997981071472
Output for 5.4.10
Time: 0.38674092292786<br> Time: 0.42384696006775
Output for 5.4.9
Time: 0.45297408103943<br> Time: 0.43130898475647
Output for 5.4.8
Time: 0.38140106201172<br> Time: 0.44831681251526
Output for 5.4.7
Time: 0.40708899497986<br> Time: 0.44294309616089
Output for 5.4.6
Time: 0.38719296455383<br> Time: 0.41927099227905
Output for 5.4.5
Time: 0.38543295860291<br> Time: 0.42807292938232
Output for 5.4.4
Time: 0.35968613624573<br> Time: 0.40725493431091
Output for 5.4.3
Time: 0.36015701293945<br> Time: 0.41187596321106
Output for 5.4.2
Time: 0.35807013511658<br> Time: 0.40833783149719
Output for 5.4.1
Time: 0.39090085029602<br> Time: 0.40881109237671
Output for 5.4.0
Time: 0.38077592849731<br> Time: 0.42771291732788
Output for 5.3.29
Time: 0.70164895057678<br> Time: 0.64723491668701
Output for 5.3.28
Time: 0.68739795684814<br> Time: 0.65382099151611
Output for 5.3.27
Time: 0.69073796272278<br> Time: 0.72340393066406
Output for 5.3.26
Time: 0.64498090744019<br> Time: 0.63933897018433
Output for 5.3.25
Time: 0.62435603141785<br> Time: 0.66548800468445
Output for 5.3.24
Time: 0.6332368850708<br> Time: 0.64185190200806
Output for 5.3.23
Time: 0.73927307128906<br> Time: 0.65246391296387
Output for 5.3.22
Time: 0.65274286270142<br> Time: 0.64043498039246
Output for 5.3.21
Time: 0.61545300483704<br> Time: 0.63709115982056
Output for 5.3.20
Time: 0.64543294906616<br> Time: 0.63395690917969
Output for 5.3.19
Time: 0.74374914169312<br> Time: 0.75202703475952
Output for 5.3.18
Time: 0.66952610015869<br> Time: 0.64137101173401
Output for 5.3.17
Time: 0.64041686058044<br> Time: 0.62865090370178
Output for 5.3.16
Time: 0.64286208152771<br> Time: 0.64658212661743
Output for 5.3.15
Time: 0.63257789611816<br> Time: 0.62956690788269
Output for 5.3.14
Time: 0.64259600639343<br> Time: 0.64052700996399
Output for 5.3.13
Time: 0.71488904953003<br> Time: 0.64410305023193
Output for 5.3.12
Time: 0.60310292243958<br> Time: 0.63456511497498
Output for 5.3.11
Time: 0.63862419128418<br> Time: 0.65560007095337
Output for 5.3.10
Time: 0.76321291923523<br> Time: 0.74976015090942
Output for 5.3.9
Time: 0.64787197113037<br> Time: 0.64764404296875
Output for 5.3.8
Time: 0.69950890541077<br> Time: 0.63441300392151
Output for 5.3.7
Time: 0.6462140083313<br> Time: 0.63579297065735
Output for 5.3.6
Time: 0.68940019607544<br> Time: 0.63488411903381
Output for 5.3.5
Time: 0.61653184890747<br> Time: 0.64062595367432
Output for 5.3.4
Time: 0.6675238609314<br> Time: 0.69956398010254
Output for 5.3.3
Time: 0.74402689933777<br> Time: 0.63550281524658
Output for 5.3.2
Time: 0.65710520744324<br> Time: 0.63999700546265
Output for 5.3.1
Time: 0.69477391242981<br> Time: 0.69081282615662
Output for 5.3.0
Time: 0.605309009552<br> Time: 0.63466191291809
Output for 4.4.2 - 4.4.9, 5.1.0 - 5.2.17
Parse error: syntax error, unexpected T_CONST in /in/kW4bZ on line 9
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.4.1, 5.0.0 - 5.0.5
Parse error: parse error, unexpected T_CONST in /in/kW4bZ on line 9
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error in /in/kW4bZ on line 9
Process exited with code 255.