3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $start = microtime(true); echo 'Test' . PHP_EOL; $end = microtime(true); echo (($end - $start) * 1000000);
Output for 5.5.26, 5.6.28, 7.1.0
Test 15.974044799805
Output for 5.5.25, 5.5.27, 5.6.7, 5.6.17, 7.0.14
Test 15.020370483398
Output for 7.0.3 - 7.0.4, 7.0.6
Test 10.967254638672
Output for 5.6.20 - 5.6.21, 7.0.5
Test 14.066696166992
Output for 5.5.30, 7.0.2
Test 11.920928955078
Output for 7.0.0 - 7.0.1
Test 12.15934753418
Output for 5.5.34, 5.6.19
Test 12.874603271484
Output for 5.5.33, 5.6.18
Test 11.205673217773
Output for 5.5.29, 5.6.16
Test 13.113021850586
Output for 5.6.15
Test 21.934509277344
Output for 5.5.24, 5.5.28, 5.5.32, 5.6.8, 5.6.14
Test 10.013580322266
Output for 5.5.31, 5.6.11, 5.6.13
Test 16.927719116211
Output for 5.6.9, 5.6.12
Test 17.881393432617
Output for 5.6.10
Test 9.0599060058594
Output for 5.5.35
Test 6.9141387939453
Output for 5.4.45
Test 106.0962677002
Output for 5.4.44
Test 144.95849609375
Output for 5.4.43
Test 8124.828338623
Output for 5.4.42
Test 86.069107055664
Output for 5.4.41
Test 117.06352233887
Output for 5.4.40
Test 38.14697265625
Output for 5.4.2, 5.4.39
Test 83.92333984375
Output for 5.4.38
Test 90.122222900391
Output for 5.4.37
Test 94.175338745117
Output for 5.4.36
Test 87.02278137207
Output for 5.4.35
Test 112.05673217773
Output for 5.4.34
Test 97.036361694336
Output for 5.4.3, 5.4.32
Test 30.994415283203
Output for 5.4.31
Test 49.114227294922
Output for 5.4.13, 5.4.30
Test 51.021575927734
Output for 5.4.29
Test 61.03515625
Output for 5.0.5, 5.1.1, 5.3.0, 5.3.2, 5.3.11, 5.3.23, 5.4.28
Test 66.995620727539
Output for 5.4.27
Test 92.983245849609
Output for 5.2.8, 5.4.20, 5.4.26
Test 59.843063354492
Output for 5.3.18, 5.3.27, 5.4.25
Test 56.028366088867
Output for 5.0.3, 5.2.5, 5.3.1, 5.3.22, 5.4.16, 5.4.24
Test 64.849853515625
Output for 5.4.23
Test 84.877014160156
Output for 5.4.22
Test 58.174133300781
Output for 5.0.4, 5.4.21
Test 62.942504882812
Output for 5.3.14, 5.4.19
Test 32.186508178711
Output for 5.4.18
Test 49.829483032227
Output for 5.2.10, 5.4.17
Test 58.889389038086
Output for 5.4.15
Test 72.002410888672
Output for 5.4.14
Test 54.836273193359
Output for 5.2.6, 5.4.7, 5.4.12
Test 66.041946411133
Output for 5.4.11
Test 102.99682617188
Output for 5.4.10
Test 70.095062255859
Output for 5.4.9
Test 69.141387939453
Output for 5.4.8
Test 44.107437133789
Output for 5.1.2, 5.1.4, 5.3.20, 5.4.1, 5.4.6
Test 65.088272094727
Output for 5.4.0, 5.4.5
Test 30.040740966797
Output for 5.4.4
Test 110.14938354492
Output for 5.3.24, 5.3.29
Test 53.882598876953
Output for 5.3.28
Test 205.99365234375
Output for 5.3.7, 5.3.12, 5.3.26
Test 64.13459777832
Output for 5.3.25
Test 88.930130004883
Output for 5.3.21
Test 20.980834960938
Output for 5.3.19
Test 51.975250244141
Output for 5.2.1, 5.3.17
Test 56.982040405273
Output for 5.3.9, 5.3.13, 5.3.16
Test 55.074691772461
Output for 5.3.15
Test 114.91775512695
Output for 5.3.6, 5.3.10
Test 61.988830566406
Output for 5.3.8
Test 72.956085205078
Output for 5.2.0, 5.3.5
Test 63.896179199219
Output for 5.2.12, 5.2.14, 5.3.4
Test 67.949295043945
Output for 5.1.5, 5.2.4, 5.3.3
Test 69.856643676758
Output for 5.2.17
Test 108.00361633301
Output for 5.2.16
Test 68.902969360352
Output for 5.2.15
Test 32.901763916016
Output for 5.2.13
Test 336.1701965332
Output for 5.2.11
Test 80.82389831543
Output for 5.2.9
Test 50.067901611328
Output for 5.2.7
Test 59.127807617188
Output for 5.2.3
Test 98.943710327148
Output for 5.2.2
Test 169.03877258301
Output for 5.1.6
Test 60.081481933594
Output for 5.1.3
Test 46.968460083008
Output for 5.1.0
Test 54.121017456055
Output for 5.0.2
Test 18.119812011719
Output for 5.0.1
Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/Yd5Wa on line 3 TestPHP_EOL89.883804321289
Output for 5.0.0
Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/Yd5Wa on line 3 TestPHP_EOL82.015991210938
Output for 4.4.9
Test 61.000000000033
Output for 4.4.8
Test 53.999999999998
Output for 4.4.7
Test 36.000000000036
Output for 4.4.6
Test 72.000000000016
Output for 4.4.5
Test 71.999999999961
Output for 4.4.4
Test 65.000000000093
Output for 4.4.3
Test 42.999999999904
Output for 4.4.2
Test 43.000000000015
Output for 4.4.1
Test 72.000000000072
Output for 4.4.0
Test 49.999999999994
Output for 4.3.11
Test 76.999999999994
Output for 4.3.10
Test 78.000000000022
Output for 4.3.9
Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/Yd5Wa on line 3 TestPHP_EOL96.000000000096
Output for 4.3.8
Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/Yd5Wa on line 3 TestPHP_EOL99.999999999989
Output for 4.3.7
Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/Yd5Wa on line 3 TestPHP_EOL107
Output for 4.3.6
Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/Yd5Wa on line 3 TestPHP_EOL105.99999999999
Output for 4.3.5
Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/Yd5Wa on line 3 TestPHP_EOL168
Output for 4.3.4
Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/Yd5Wa on line 3 TestPHP_EOL132.99999999999
Output for 4.3.3
Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/Yd5Wa on line 3 TestPHP_EOL95.000000000012
Output for 4.3.2
Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/Yd5Wa on line 3 TestPHP_EOL102.99999999999
Output for 4.3.1
Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/Yd5Wa on line 3 TestPHP_EOL213.99999999999
Output for 4.3.0
Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/Yd5Wa on line 3 TestPHP_EOL29.000000000057