3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php namespace test; $start = microtime(true); for($i = 0; $i < 100000; ++$i){ strlen(null . null . null . null . null . null . null . null . null . null . null . null); } echo microtime(true) - $start, PHP_EOL;
based on FKX4X
Output for 7.1.0
0.003183126449585
Output for 7.0.14
0.0031900405883789
Output for 7.0.6
0.0032200813293457
Output for 7.0.5
0.0027148723602295
Output for 7.0.4
0.0021748542785645
Output for 7.0.3
0.0021929740905762
Output for 7.0.2
0.0023810863494873
Output for 7.0.1
0.0025579929351807
Output for 7.0.0
0.0027799606323242
Output for hhvm-3.12.0
0.015586137771606
Output for hhvm-3.10.0
0.015352964401245
Output for 5.6.28
0.07805609703064
Output for 5.6.21
0.047657012939453
Output for 5.6.20
0.060308933258057
Output for 5.6.19
0.045005083084106
Output for 5.6.18
0.046341180801392
Output for 5.6.17
0.049407005310059
Output for 5.6.16
0.044764041900635
Output for 5.6.15
0.059551954269409
Output for 5.6.14
0.047068119049072
Output for 5.6.13
0.063530206680298
Output for 5.6.12
0.057191133499146
Output for 5.6.11
0.048171997070312
Output for 5.6.10
0.046125173568726
Output for 5.6.9
0.06313681602478
Output for 5.6.8
0.046184062957764
Output for 5.5.35
0.075998067855835
Output for 5.5.34
0.08191704750061
Output for 5.5.33
0.061975955963135
Output for 5.5.32
0.080627918243408
Output for 5.5.31
0.058794975280762
Output for 5.5.30
0.072535991668701
Output for 5.5.29
0.083095073699951
Output for 5.5.28
0.066236972808838
Output for 5.5.27
0.087072849273682
Output for 5.5.26
0.059258937835693
Output for 5.5.25
0.081722974777222
Output for 5.5.24
0.075628995895386
Output for 5.4.45
0.097983837127686
Output for 5.4.44
0.052134990692139
Output for 5.4.43
0.098026990890503
Output for 5.4.42
0.13367390632629
Output for 5.4.41
0.099073171615601
Output for 5.4.40
0.092013835906982
Output for 5.4.39
0.099066972732544
Output for 5.4.38
0.10142302513123
Output for 5.4.37
0.097234964370728
Output for 5.4.36
0.12451195716858
Output for 5.4.35
0.1430139541626
Output for 5.4.34
0.10749006271362
Output for 5.4.32
0.080248117446899
Output for 5.4.31
0.070107936859131
Output for 5.4.30
0.074504137039185
Output for 5.4.29
0.071825981140137
Output for 5.4.28
0.08634090423584
Output for 5.4.27
0.071149110794067
Output for 5.4.26
0.074818849563599
Output for 5.4.25
0.073155879974365
Output for 5.4.24
0.077202081680298
Output for 5.4.23
0.087238073348999
Output for 5.4.22
0.07019305229187
Output for 5.4.21
0.068795919418335
Output for 5.4.20
0.087573051452637
Output for 5.4.19
0.075287103652954
Output for 5.4.18
0.074991941452026
Output for 5.4.17
0.071846961975098
Output for 5.4.16
0.07387900352478
Output for 5.4.15
0.069378137588501
Output for 5.4.14
0.069725036621094
Output for 5.4.13
0.073729038238525
Output for 5.4.12
0.082833051681519
Output for 5.4.11
0.079125165939331
Output for 5.4.10
0.091922998428345
Output for 5.4.9
0.078253984451294
Output for 5.4.8
0.082112789154053
Output for 5.4.7
0.079401969909668
Output for 5.4.6
0.090367078781128
Output for 5.4.5
0.084429025650024
Output for 5.4.4
0.079442977905273
Output for 5.4.3
0.078720092773438
Output for 5.4.2
0.081557035446167
Output for 5.4.1
0.076617956161499
Output for 5.4.0
0.085759162902832
Output for 5.3.29
0.16479396820068
Output for 5.3.28
0.15275812149048
Output for 5.3.27
0.17768788337708
Output for 5.3.26
0.15717697143555
Output for 5.3.25
0.16119599342346
Output for 5.3.24
0.15687394142151
Output for 5.3.23
0.15557599067688
Output for 5.3.22
0.1624219417572
Output for 5.3.21
0.16482400894165
Output for 5.3.20
0.17234802246094
Output for 5.3.19
0.15798401832581
Output for 5.3.18
0.16087698936462
Output for 5.3.17
0.18758296966553
Output for 5.3.16
0.20077300071716
Output for 5.3.15
0.17727422714233
Output for 5.3.14
0.28330588340759
Output for 5.3.13
0.25123000144958
Output for 5.3.12
0.21961808204651
Output for 5.3.11
0.21315884590149
Output for 5.3.10
0.18021702766418
Output for 5.3.9
0.16602301597595
Output for 5.3.8
0.18099188804626
Output for 5.3.7
0.18473696708679
Output for 5.3.6
0.17168807983398
Output for 5.3.5
0.16809415817261
Output for 5.3.4
0.17148804664612
Output for 5.3.3
0.16325497627258
Output for 5.3.2
0.18283009529114
Output for 5.3.1
0.16071891784668
Output for 5.3.0
0.16322183609009
Output for 4.4.2 - 4.4.9, 5.1.0 - 5.2.17
Parse error: syntax error, unexpected T_STRING in /in/Q9YVR on line 3
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_STRING in /in/Q9YVR on line 3
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error in /in/Q9YVR on line 3
Process exited with code 255.