3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $r = 10 * 1000 * 1000; $start = microtime(true); while($r-- > 0) { new StdClass(); } $finish = microtime(true); echo "time taken: " . ($finish - $start) . "\n";
Output for 7.1.0
time taken: 0.54642987251282
Output for 7.0.14
time taken: 0.5136730670929
Output for 7.0.6
time taken: 0.503741979599
Output for 7.0.5
time taken: 0.5022759437561
Output for 7.0.4
time taken: 0.47919392585754
Output for 7.0.3
time taken: 0.48394298553467
Output for 7.0.2
time taken: 0.62873291969299
Output for 7.0.1
time taken: 0.49820113182068
Output for 7.0.0
time taken: 0.49502682685852
Output for 5.6.28
time taken: 0.13118386268616
Output for 5.6.21
time taken: 0.80222201347351
Output for 5.6.20
time taken: 0.81368494033813
Output for 5.6.19
time taken: 0.79359006881714
Output for 5.6.18
time taken: 0.79237484931946
Output for 5.6.17
time taken: 0.79362297058105
Output for 5.6.16
time taken: 0.7820360660553
Output for 5.6.15
time taken: 0.78097915649414
Output for 5.6.14
time taken: 0.82817196846008
Output for 5.6.13
time taken: 0.81748414039612
Output for 5.6.12
time taken: 0.80123496055603
Output for 5.6.11
time taken: 0.80178499221802
Output for 5.6.10
time taken: 0.78280019760132
Output for 5.6.9
time taken: 0.82142400741577
Output for 5.6.8
time taken: 0.80044102668762
Output for 5.6.7
time taken: 0.81200909614563
Output for 5.5.35
time taken: 0.801029920578
Output for 5.5.34
time taken: 0.78927302360535
Output for 5.5.33
time taken: 0.79345107078552
Output for 5.5.32
time taken: 0.8114709854126
Output for 5.5.31
time taken: 0.86304998397827
Output for 5.5.30
time taken: 0.78085398674011
Output for 5.5.29
time taken: 0.79661893844604
Output for 5.5.28
time taken: 0.81764507293701
Output for 5.5.27
time taken: 0.79530596733093
Output for 5.5.26
time taken: 0.76959705352783
Output for 5.5.25
time taken: 0.80096793174744
Output for 5.5.24
time taken: 0.82149696350098
Output for 5.4.45
time taken: 0.72464990615845
Output for 5.4.44
time taken: 1.0852601528168
Output for 5.4.43
time taken: 0.92481899261475
Output for 5.4.42
time taken: 0.740473985672
Output for 5.4.41
time taken: 0.86661195755005
Output for 5.4.40
time taken: 0.7850968837738
Output for 5.4.39
time taken: 0.73222708702087
Output for 5.4.38
time taken: 0.75362300872803
Output for 5.4.37
time taken: 0.79424905776978
Output for 5.4.36
time taken: 0.74527502059937
Output for 5.4.35
time taken: 0.82163190841675
Output for 5.4.34
time taken: 0.92728114128113
Output for 5.4.32
time taken: 0.72463703155518
Output for 5.4.31
time taken: 1.0691850185394
Output for 5.4.30
time taken: 1.7399120330811
Output for 5.4.29
time taken: 1.2125329971313
Output for 5.4.28
time taken: 1.1375057697296
Output for 5.4.27
time taken: 1.1571009159088
Output for 5.4.26
time taken: 1.3998129367828
Output for 5.4.25
time taken: 1.4176490306854
Output for 5.4.24
time taken: 1.2902970314026
Output for 5.4.23
time taken: 1.304792881012
Output for 5.4.22
time taken: 1.4801251888275
Output for 5.4.21
time taken: 1.1077690124512
Output for 5.4.20
time taken: 1.0584080219269
Output for 5.4.19
time taken: 1.3021309375763
Output for 5.4.18
time taken: 1.1947281360626
Output for 5.4.17
time taken: 1.0519490242004
Output for 5.4.16
time taken: 1.2429740428925
Output for 5.4.15
time taken: 0.94247388839722
Output for 5.4.14
time taken: 1.4385199546814
Output for 5.4.13
time taken: 1.3724761009216
Output for 5.4.12
time taken: 1.5235869884491
Output for 5.4.11
time taken: 1.4155309200287
Output for 5.4.10
time taken: 1.8948490619659
Output for 5.4.9
time taken: 1.8410098552704
Output for 5.4.8
time taken: 1.6333889961243
Output for 5.4.7
time taken: 1.1530358791351
Output for 5.4.6
time taken: 1.1443231105804
Output for 5.4.5
time taken: 1.162230014801
Output for 5.4.4
time taken: 1.3438692092896
Output for 5.4.3
time taken: 1.2660760879517
Output for 5.4.2
time taken: 1.3882529735565
Output for 5.4.1
time taken: 1.0201900005341
Output for 5.4.0
time taken: 1.1119930744171
Output for 5.3.29
time taken: 1.4599049091339
Output for 5.2.15 - 5.3.23, 5.3.27 - 5.3.28

Process exited with code 137.
Output for 5.3.26
time taken: 1.9525542259216
Output for 5.3.25
time taken: 1.9450881481171
Output for 5.3.24
time taken: 1.8579568862915