3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $time = microtime (); for($i = 0;$i < 10000; $i++) { $val1 = (1 === "1"); } echo microtime () - $time; echo "\n"; $time = microtime (); for($j = 0;$j < 10000; $j++) { $val2 = (1 == "1"); } echo microtime () - $time;
Output for 7.1.0
Notice: A non well formed numeric value encountered in /in/E4tre on line 8 Notice: A non well formed numeric value encountered in /in/E4tre on line 8 0.000163 Notice: A non well formed numeric value encountered in /in/E4tre on line 18 Notice: A non well formed numeric value encountered in /in/E4tre on line 18 0.000189
Output for 7.0.14
0.000178 0.000171
Output for 7.0.12
0.000191 0.000183
Output for 7.0.6
0.00017 0.000164
Output for 7.0.5
0.00011399999999995 0.00010999999999994
Output for 7.0.4
0.00010400000000001 0.00010099999999999
Output for 7.0.3
0.00010899999999997 0.00010300000000002
Output for 7.0.2
0.00011499999999998 0.00010999999999994
Output for 7.0.1
0.00014599999999998 0.00014800000000004
Output for 7.0.0
0.00010700000000002 0.000109
Output for hhvm-3.12.0
0.00042900000000001 0.00042200000000003
Output for hhvm-3.10.0
0.00051900000000005 0.00049900000000003
Output for 5.6.28
0.000982 0.001465
Output for 5.6.21
0.000502 0.000664
Output for 5.6.20
0.00029000000000001 0.00048500000000001
Output for 5.6.19
0.00028300000000003 0.00050000000000006
Output for 5.6.18
0.00033500000000009 0.00060099999999996
Output for 5.6.17
0.000363 0.00061199999999995
Output for 5.6.16
0.000429 0.000724
Output for 5.6.15
0.00034700000000004 0.000614
Output for 5.6.14
0.00035000000000007 0.00058199999999997
Output for 5.6.13
0.00038000000000005 0.00096300000000005
Output for 5.6.12
0.00028499999999998 0.00049699999999997
Output for 5.6.11
0.00041400000000003 0.00072100000000003
Output for 5.6.10
0.00040200000000001 0.00070499999999998
Output for 5.6.9
0.0003740000000001 0.00068500000000005
Output for 5.6.8
0.00042400000000001 0.00072900000000001
Output for 5.6.7
0.00028499999999998 -0.999502
Output for 5.5.35
0.00043899999999997 0.00076299999999996
Output for 5.5.34
0.00046599999999999 0.000863
Output for 5.5.33
0.00040499999999999 0.000695
Output for 5.5.32
0.000394 0.000684
Output for 5.5.31
0.00034000000000001 0.00053099999999995
Output for 5.5.30
0.00028500000000004 0.00048499999999996
Output for 5.5.29
0.00044 0.00067400000000006
Output for 5.5.28
0.00028400000000006 0.00051000000000001
Output for 5.5.27
0.000278 0.00046
Output for 5.5.26
0.000276 0.00050099999999997
Output for 5.5.25
0.00042900000000001 0.00073299999999998
Output for 5.5.24
0.00042399999999998 0.00070999999999999
Output for 5.4.45
0.00023800000000007 0.00038199999999999
Output for 5.4.44
0.00036400000000003 0.00077199999999999
Output for 5.4.43
0.00038700000000003 0.00087300000000001
Output for 5.4.42
0.00038499999999997 0.00080900000000006
Output for 5.4.41
0.000363 0.00071900000000003
Output for 5.4.40
0.00036599999999998 0.00084800000000002
Output for 5.4.39
0.00024299999999999 0.00039
Output for 5.4.38
0.00025200000000003 0.00039299999999998
Output for 5.4.37
0.00024099999999999 0.00038300000000002
Output for 5.4.36
0.00043300000000002 0.0008459999999999
Output for 5.4.35
0.000291 0.00053300000000001
Output for 5.4.34
0.000351 0.000473
Output for 5.4.32
0.00024399999999997 0.000392
Output for 5.4.31
0.00036899999999995 0.00078600000000006
Output for 5.4.30
0.00036600000000009 0.00073599999999996
Output for 5.4.29
0.00037299999999996 0.00069200000000003
Output for 5.4.28
0.00038499999999997 0.00068899999999994
Output for 5.4.27
0.000387 0.00085000000000002
Output for 5.4.26
0.00036 0.000721
Output for 5.4.25
0.00035299999999994 0.00084700000000004
Output for 5.4.24
0.00035799999999997 0.00089899999999998
Output for 5.4.23
0.00037799999999999 0.000884
Output for 5.4.22
0.00026200000000004 0.00040000000000001
Output for 5.4.21
0.00024299999999999 0.00040799999999996
Output for 5.4.20
0.000253 0.00039099999999997
Output for 5.4.19
0.00044100000000002 0.00039699999999998
Output for 5.4.18
0.000245 0.00038299999999999
Output for 5.4.17
0.00024000000000002 0.00039900000000004
Output for 5.4.16
0.00037600000000004 0.00082900000000008
Output for 5.4.15
0.00038500000000002 0.00086400000000003
Output for 5.4.14
0.00023899999999999 0.00039800000000001
Output for 5.4.13
0.00026399999999999 0.000446
Output for 5.4.12
0.000251 0.000413
Output for 5.4.11
0.000471 0.00085000000000002
Output for 5.4.10
0.00034899999999999 0.000693
Output for 5.4.9
0.00037899999999996 0.00075400000000003
Output for 5.4.8
0.00026699999999991 0.0004599999999999
Output for 5.4.7
0.00026500000000002 0.000475
Output for 5.4.6
0.00024599999999997 0.00038899999999997
Output for 5.4.5
0.00041900000000006 0.00085899999999994
Output for 5.4.4
0.00036199999999997 0.00088900000000003
Output for 5.4.3
0.000362 0.00084999999999999
Output for 5.4.2
0.00037600000000004 0.000724
Output for 5.4.1
0.00037800000000002 0.00076199999999998
Output for 5.4.0
0.00035799999999997 0.00085800000000003
Output for 5.3.29
0.00048700000000002 0.00080400000000003
Output for 5.3.28
0.00048400000000004 0.000892
Output for 5.3.27
0.000483 0.000848
Output for 5.3.26
0.00047899999999998 0.001048
Output for 5.3.25
0.00051900000000005 0.00090600000000007
Output for 5.3.24
0.00037499999999999 0.00049200000000002
Output for 5.3.23
0.00034099999999992 0.00068699999999999
Output for 5.3.22
0.00034100000000004 0.00048700000000002
Output for 5.3.21
0.00062399999999999 0.001276
Output for 5.3.20
0.00051400000000001 0.000861
Output for 5.3.19
0.00050699999999992 0.0011
Output for 5.3.18
0.00034600000000001 0.00050800000000001
Output for 5.3.17
0.000481 0.000786
Output for 5.3.16
0.00048600000000001 0.001043
Output for 5.3.15
0.00052699999999994 0.0010599999999999
Output for 5.3.14
0.00033899999999998 0.000504
Output for 5.3.13
0.00051199999999996 0.000996
Output for 5.3.12
0.00049699999999997 0.001024
Output for 5.3.11
0.00049700000000008 0.00091399999999997
Output for 5.3.10
0.00050600000000001 0.000996
Output for 5.3.9
0.00049900000000003 0.001059
Output for 5.3.8
0.00048700000000002 0.00078700000000009
Output for 5.3.7
0.00047399999999997 0.00078599999999995
Output for 5.3.6
0.00043699999999997 0.00063299999999999
Output for 5.3.5
0.00033799999999995 0.00051299999999999
Output for 5.3.4
0.000486 0.001014
Output for 5.3.3
0.000502 0.001341
Output for 5.3.2
0.00051999999999996 0.00095499999999993
Output for 5.3.1
0.00056299999999998 0.00086700000000006
Output for 5.3.0
0.00048599999999999 0.00094700000000003
Output for 5.2.17
0.00043399999999999 0.00070599999999998
Output for 5.2.16
0.000749 0.001142
Output for 5.2.15
0.00079200000000001 0.001449
Output for 5.2.14
0.00090499999999999 0.00146
Output for 5.2.13
0.000694 0.001135
Output for 5.2.12
0.00068499999999999 0.00113
Output for 5.2.11
0.00081199999999998 0.001444
Output for 5.2.10
0.000919 0.001555
Output for 5.2.9
0.00046400000000002 0.00067300000000003
Output for 5.2.8
0.00074199999999996 0.001225
Output for 5.2.7
0.0011509999999999 0.0023570000000001
Output for 5.2.6
0.000612 0.000957
Output for 5.2.5
0.00045299999999993 0.00066699999999997
Output for 5.2.4
0.000801 0.001142
Output for 5.2.3
0.00069600000000003 0.001167
Output for 5.2.2
0.00059699999999996 0.00080999999999998
Output for 5.2.1
0.00065999999999999 0.001185
Output for 5.2.0
0.00044300000000008 0.00063599999999997
Output for 5.1.6
0.00072499999999998 0.001503
Output for 5.1.5
0.00097399999999997 0.001466
Output for 5.1.4
0.00090399999999999 0.001903
Output for 5.1.3
0.00083599999999995 0.001462
Output for 5.1.2
0.000872 0.001521
Output for 5.1.1
0.00083600000000006 0.001256
Output for 5.1.0
0.00043199999999999 0.00065800000000002
Output for 5.0.5
0.001782 0.002174
Output for 5.0.4
0.001685 0.002125
Output for 5.0.3
0.001555 0.001245
Output for 5.0.2
0.001634 0.002567
Output for 5.0.1
0.001831 0.001771
Output for 5.0.0
0.002014 0.002463
Output for 4.4.9
0.001903 0.002427
Output for 4.4.8
0.00097799999999998 0.001251
Output for 4.4.7
0.00174 0.0019819999999999
Output for 4.4.6
0.001635 0.002628
Output for 4.4.5
0.001637 0.0015579999999999
Output for 4.4.4
0.001623 0.002044
Output for 4.4.3
0.00099399999999994 0.001236
Output for 4.4.2
0.002387 0.003818
Output for 4.4.1
0.001865 0.0021140000000001
Output for 4.4.0
0.013595 0.002214
Output for 4.3.11
0.002119 0.002707
Output for 4.3.10
0.0021330000000001 0.002298
Output for 4.3.9
0.00192 0.002348
Output for 4.3.8
0.002056 0.003217
Output for 4.3.7
0.001587 0.001956
Output for 4.3.6
0.002136 0.002453
Output for 4.3.5
0.001977 0.002223
Output for 4.3.4
0.002069 0.002633
Output for 4.3.3
0.00096299999999999 0.001214
Output for 4.3.2
0.002041 0.002462
Output for 4.3.1
0.001967 0.002648
Output for 4.3.0
0.00093299999999996 0.001152