3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $i = 0; $start = microtime(true); for ($i=0; $i < 1000000; ++$i) { if (false) {} } $end = microtime(true); echo 'if(false): ' . sprintf('%f', $end - $start) . PHP_EOL; $start = microtime(true); for ($i=0; $i < 1000000; ++$i) { if (null) {} } $end = microtime(true); echo 'if(null): ' . sprintf('%f', $end - $start) . PHP_EOL;
Output for 7.1.0
if(false): 0.012557 if(null): 0.012080
Output for 7.0.14
if(false): 0.011987 if(null): 0.011501
Output for 7.0.6
if(false): 0.012517 if(null): 0.011795
Output for 7.0.5
if(false): 0.008380 if(null): 0.007759
Output for 7.0.4
if(false): 0.009277 if(null): 0.008949
Output for 7.0.3
if(false): 0.006837 if(null): 0.006837
Output for 7.0.2
if(false): 0.009760 if(null): 0.009393
Output for 7.0.1
if(false): 0.010017 if(null): 0.009601
Output for 7.0.0
if(false): 0.006751 if(null): 0.006749
Output for 5.6.28
if(false): 0.032222 if(null): 0.028428
Output for 5.6.21
if(false): 0.026208 if(null): 0.022738
Output for 5.6.20
if(false): 0.022241 if(null): 0.020419
Output for 5.6.19
if(false): 0.028650 if(null): 0.026251
Output for 5.6.18
if(false): 0.027452 if(null): 0.024874
Output for 5.6.17
if(false): 0.026603 if(null): 0.024215
Output for 5.6.16
if(false): 0.023360 if(null): 0.021748
Output for 5.6.15
if(false): 0.027320 if(null): 0.024341
Output for 5.6.14
if(false): 0.021114 if(null): 0.021091
Output for 5.6.13
if(false): 0.025221 if(null): 0.023095
Output for 5.6.12
if(false): 0.029002 if(null): 0.026066
Output for 5.6.11
if(false): 0.028015 if(null): 0.020974
Output for 5.6.10
if(false): 0.021658 if(null): 0.021091
Output for 5.6.9
if(false): 0.028352 if(null): 0.026417
Output for 5.6.8
if(false): 0.030124 if(null): 0.026857
Output for 5.6.7
if(false): 0.028490 if(null): 0.025593
Output for 5.6.6
if(false): 0.030624 if(null): 0.027020
Output for 5.6.5
if(false): 0.023904 if(null): 0.022346
Output for 5.6.4
if(false): 0.029000 if(null): 0.025955
Output for 5.6.3
if(false): 0.025089 if(null): 0.023026
Output for 5.6.2
if(false): 0.028777 if(null): 0.025813
Output for 5.6.1
if(false): 0.021768 if(null): 0.021011
Output for 5.6.0
if(false): 0.026932 if(null): 0.023140
Output for 5.5.35
if(false): 0.017629 if(null): 0.019594
Output for 5.5.34
if(false): 0.021080 if(null): 0.021089
Output for 5.5.33
if(false): 0.021329 if(null): 0.021087
Output for 5.5.32
if(false): 0.029206 if(null): 0.026824
Output for 5.5.31
if(false): 0.029080 if(null): 0.026047
Output for 5.5.30
if(false): 0.025887 if(null): 0.023702
Output for 5.5.29
if(false): 0.023161 if(null): 0.021252
Output for 5.5.28
if(false): 0.021342 if(null): 0.021371
Output for 5.5.27
if(false): 0.027830 if(null): 0.021209
Output for 5.5.26
if(false): 0.029803 if(null): 0.026554
Output for 5.5.25
if(false): 0.030007 if(null): 0.027121
Output for 5.5.24
if(false): 0.021020 if(null): 0.021011
Output for 5.5.23
if(false): 0.029261 if(null): 0.024890
Output for 5.5.22
if(false): 0.024689 if(null): 0.022773
Output for 5.5.21
if(false): 0.024108 if(null): 0.022297
Output for 5.5.20
if(false): 0.030481 if(null): 0.026915
Output for 5.5.19
if(false): 0.028825 if(null): 0.026321
Output for 5.5.18
if(false): 0.029661 if(null): 0.026658
Output for 5.5.16
if(false): 0.024589 if(null): 0.022797
Output for 5.5.15
if(false): 0.021035 if(null): 0.020933
Output for 5.5.14
if(false): 0.029015 if(null): 0.025952
Output for 5.5.13
if(false): 0.029370 if(null): 0.026356
Output for 5.5.12
if(false): 0.029791 if(null): 0.026686
Output for 5.5.11
if(false): 0.026114 if(null): 0.023868
Output for 5.5.10
if(false): 0.028959 if(null): 0.025958
Output for 5.5.9
if(false): 0.028839 if(null): 0.025707
Output for 5.5.8
if(false): 0.027848 if(null): 0.025188
Output for 5.5.7
if(false): 0.024692 if(null): 0.022715
Output for 5.5.6
if(false): 0.028759 if(null): 0.025729
Output for 5.5.5
if(false): 0.028969 if(null): 0.026158
Output for 5.5.4
if(false): 0.025066 if(null): 0.022818
Output for 5.5.3
if(false): 0.026798 if(null): 0.024774
Output for 5.5.2
if(false): 0.026124 if(null): 0.021521
Output for 5.5.1
if(false): 0.022753 if(null): 0.021086
Output for 5.5.0
if(false): 0.024680 if(null): 0.023380
Output for 5.4.45
if(false): 0.025099 if(null): 0.023265
Output for 5.4.44
if(false): 0.026842 if(null): 0.027747
Output for 5.4.43
if(false): 0.030355 if(null): 0.027041
Output for 5.4.42
if(false): 0.031442 if(null): 0.027479
Output for 5.4.41
if(false): 0.021600 if(null): 0.021516
Output for 5.4.40
if(false): 0.029936 if(null): 0.031061
Output for 5.4.39
if(false): 0.021579 if(null): 0.021485
Output for 5.4.38
if(false): 0.025873 if(null): 0.023037
Output for 5.4.37
if(false): 0.021620 if(null): 0.021395
Output for 5.4.36
if(false): 0.029823 if(null): 0.026416
Output for 5.4.35
if(false): 0.029181 if(null): 0.026099
Output for 5.4.34
if(false): 0.028375 if(null): 0.025984
Output for 5.4.32
if(false): 0.028421 if(null): 0.025361
Output for 5.4.31
if(false): 0.023509 if(null): 0.025625
Output for 5.4.30
if(false): 0.021650 if(null): 0.021438
Output for 5.4.29
if(false): 0.031369 if(null): 0.025812
Output for 5.4.28
if(false): 0.025060 if(null): 0.025041
Output for 5.4.27
if(false): 0.031953 if(null): 0.027600
Output for 5.4.26
if(false): 0.026262 if(null): 0.023895
Output for 5.4.25
if(false): 0.029928 if(null): 0.026786
Output for 5.4.24
if(false): 0.029982 if(null): 0.026509
Output for 5.4.23
if(false): 0.031247 if(null): 0.025368
Output for 5.4.22
if(false): 0.029885 if(null): 0.026701
Output for 5.4.21
if(false): 0.030011 if(null): 0.026535
Output for 5.4.20
if(false): 0.025813 if(null): 0.021429
Output for 5.4.19
if(false): 0.028215 if(null): 0.025462
Output for 5.4.18
if(false): 0.027763 if(null): 0.025166
Output for 5.4.17
if(false): 0.029977 if(null): 0.026583
Output for 5.4.16
if(false): 0.024685 if(null): 0.041901
Output for 5.4.15
if(false): 0.024061 if(null): 0.022358
Output for 5.4.14
if(false): 0.031051 if(null): 0.027496
Output for 5.4.13
if(false): 0.025028 if(null): 0.024125
Output for 5.4.12
if(false): 0.029641 if(null): 0.026376
Output for 5.4.11
if(false): 0.028063 if(null): 0.025105
Output for 5.4.10
if(false): 0.031339 if(null): 0.027755
Output for 5.4.9
if(false): 0.032218 if(null): 0.027606
Output for 5.4.8
if(false): 0.024526 if(null): 0.022516
Output for 5.4.7
if(false): 0.021957 if(null): 0.021194
Output for 5.4.6
if(false): 0.032382 if(null): 0.028058
Output for 5.4.5
if(false): 0.026831 if(null): 0.024315
Output for 5.4.4
if(false): 0.027486 if(null): 0.024298
Output for 5.4.3
if(false): 0.025208 if(null): 0.023919
Output for 5.4.2
if(false): 0.028795 if(null): 0.025662
Output for 5.4.1
if(false): 0.030993 if(null): 0.027646
Output for 5.4.0
if(false): 0.030512 if(null): 0.026636
Output for 5.3.29
if(false): 0.033220 if(null): 0.033462
Output for 5.3.28
if(false): 0.033067 if(null): 0.028815
Output for 5.3.27
if(false): 0.033565 if(null): 0.030144
Output for 5.3.26
if(false): 0.036047 if(null): 0.031378
Output for 5.3.25
if(false): 0.035207 if(null): 0.031374
Output for 5.3.24
if(false): 0.034403 if(null): 0.030701
Output for 5.3.23
if(false): 0.034266 if(null): 0.030390
Output for 5.3.22
if(false): 0.025718 if(null): 0.025578
Output for 5.3.21
if(false): 0.026230 if(null): 0.026149
Output for 5.3.20
if(false): 0.038524 if(null): 0.033555
Output for 5.3.19
if(false): 0.025803 if(null): 0.026024
Output for 5.3.18
if(false): 0.037170 if(null): 0.029517
Output for 5.3.17
if(false): 0.041654 if(null): 0.031395
Output for 5.3.16
if(false): 0.034127 if(null): 0.031795
Output for 5.3.15
if(false): 0.025890 if(null): 0.025857
Output for 5.3.14
if(false): 0.032559 if(null): 0.030699
Output for 5.3.13
if(false): 0.035305 if(null): 0.031253
Output for 5.3.12
if(false): 0.028821 if(null): 0.027606
Output for 5.3.11
if(false): 0.036255 if(null): 0.031703
Output for 5.3.10
if(false): 0.036482 if(null): 0.032164
Output for 5.3.9
if(false): 0.036436 if(null): 0.033469
Output for 5.3.8
if(false): 0.038247 if(null): 0.034619
Output for 5.3.7
if(false): 0.032663 if(null): 0.028050
Output for 5.3.6
if(false): 0.026555 if(null): 0.027344
Output for 5.3.5
if(false): 0.032548 if(null): 0.030005
Output for 5.3.4
if(false): 0.031604 if(null): 0.035905
Output for 5.3.3
if(false): 0.038729 if(null): 0.034749
Output for 5.3.2
if(false): 0.037918 if(null): 0.034505
Output for 5.3.1
if(false): 0.035067 if(null): 0.033149
Output for 5.3.0
if(false): 0.026167 if(null): 0.026875
Output for 5.2.17
if(false): 0.054684 if(null): 0.043137
Output for 5.2.16
if(false): 0.044548 if(null): 0.039635
Output for 5.2.15
if(false): 0.047902 if(null): 0.041434
Output for 5.2.14
if(false): 0.048956 if(null): 0.040600
Output for 5.2.13
if(false): 0.038678 if(null): 0.034850
Output for 5.2.12
if(false): 0.042698 if(null): 0.035096
Output for 5.2.11
if(false): 0.037478 if(null): 0.036452
Output for 5.2.10
if(false): 0.033698 if(null): 0.033567
Output for 5.2.9
if(false): 0.035979 if(null): 0.036177
Output for 5.2.8
if(false): 0.041022 if(null): 0.039757
Output for 5.2.7
if(false): 0.036435 if(null): 0.036405
Output for 5.2.6
if(false): 0.034706 if(null): 0.033829
Output for 5.2.5
if(false): 0.034267 if(null): 0.034852
Output for 5.2.4
if(false): 0.036408 if(null): 0.034177
Output for 5.2.3
if(false): 0.054977 if(null): 0.042217
Output for 5.2.2
if(false): 0.053827 if(null): 0.043615
Output for 5.2.1
if(false): 0.033586 if(null): 0.032129
Output for 5.2.0
if(false): 0.039087 if(null): 0.036102
Output for 5.1.6
if(false): 0.033380 if(null): 0.032733
Output for 5.1.5
if(false): 0.036187 if(null): 0.035606
Output for 5.1.4
if(false): 0.040534 if(null): 0.039131
Output for 5.1.3
if(false): 0.039549 if(null): 0.037519
Output for 5.1.2
if(false): 0.052188 if(null): 0.050889
Output for 5.1.1
if(false): 0.053910 if(null): 0.053656
Output for 5.1.0
if(false): 0.059745 if(null): 0.064994
Output for 5.0.5
if(false): 0.113874 if(null): 0.101119
Output for 5.0.4
if(false): 0.142693 if(null): 0.098902
Output for 5.0.3
if(false): 0.125811 if(null): 0.098463
Output for 5.0.2
if(false): 0.136514 if(null): 0.096125
Output for 5.0.1
Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/jDDOr on line 9 if(false): 0.133855PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/jDDOr on line 16 if(null): 0.096275PHP_EOL
Output for 5.0.0
Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/jDDOr on line 9 if(false): 0.097090PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/jDDOr on line 16 if(null): 0.096680PHP_EOL
Output for 4.4.9
if(false): 0.093533 if(null): -0.908648
Output for 4.4.8
if(false): 0.105794 if(null): 0.106508
Output for 4.4.7
if(false): 0.095682 if(null): 0.095571
Output for 4.4.6
if(false): -0.903837 if(null): 0.092760
Output for 4.4.5
if(false): 0.098373 if(null): 0.093925
Output for 4.4.4
if(false): 0.096377 if(null): 0.094286
Output for 4.4.3
if(false): 0.095533 if(null): -0.908061
Output for 4.4.2
if(false): 0.095237 if(null): -0.906550
Output for 4.4.1
if(false): 0.135963 if(null): 0.094415
Output for 4.4.0
if(false): 0.107749 if(null): 0.103993
Output for 4.3.11
if(false): 0.097212 if(null): 0.094980
Output for 4.3.10
if(false): -0.867493 if(null): 0.092948
Output for 4.3.9
Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/jDDOr on line 9 if(false): 0.125931PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/jDDOr on line 16 if(null): 0.095160PHP_EOL
Output for 4.3.8
Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/jDDOr on line 9 if(false): 0.121898PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/jDDOr on line 16 if(null): -0.903002PHP_EOL
Output for 4.3.7
Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/jDDOr on line 9 if(false): 0.139772PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/jDDOr on line 16 if(null): 0.094760PHP_EOL
Output for 4.3.6
Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/jDDOr on line 9 if(false): 0.127884PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/jDDOr on line 16 if(null): 0.097257PHP_EOL
Output for 4.3.5
Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/jDDOr on line 9 if(false): -0.860466PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/jDDOr on line 16 if(null): 0.094249PHP_EOL
Output for 4.3.4
Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/jDDOr on line 9 if(false): 0.097250PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/jDDOr on line 16 if(null): 0.091710PHP_EOL
Output for 4.3.3
Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/jDDOr on line 9 if(false): 0.138702PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/jDDOr on line 16 if(null): 0.095017PHP_EOL
Output for 4.3.2
Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/jDDOr on line 9 if(false): 0.130688PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/jDDOr on line 16 if(null): 0.092872PHP_EOL
Output for 4.3.1
Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/jDDOr on line 9 if(false): 0.131028PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/jDDOr on line 16 if(null): 0.089889PHP_EOL
Output for 4.3.0
Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/jDDOr on line 9 if(false): 0.138491PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/jDDOr on line 16 if(null): -0.906332PHP_EOL