3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function Number2Date($number) { $seconds = '00'; $minutes = '00'; $hours = '00'; if(strpos($number, '.')) { $arr = explode(".", $number); $hours = $arr[0]; $minutes = 60 * ($arr[1] / 10); } else { $hours = $number; } return $hours.":".$minutes.":".$seconds; } echo Number2Date(48.5); ?>
based on eHnjl

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).
Note: hhvm uses a JIT which only kicks in after a few runs. Since we run scripts only once, hhvm always runs slower.

VersionSystem time (s)User time (s)Memory (MiB)
7.2.00.0070.00719.32
7.1.100.0070.00318.07
7.1.70.0030.00917.25
7.1.60.0090.01219.46
7.1.50.0200.01734.80
7.1.00.0000.08022.36
7.0.200.0000.01016.64
7.0.140.0070.04722.01
7.0.60.0030.08320.07
7.0.50.0170.06017.87
7.0.40.0100.07320.14
7.0.30.0170.05720.24
7.0.20.0270.06020.22
7.0.10.0230.07720.19
7.0.00.0100.07720.14
5.6.280.0000.07720.99
5.6.210.0030.08720.66
5.6.200.0030.04318.16
5.6.190.0100.07720.53
5.6.180.0370.06720.45
5.6.170.0230.08020.62
5.6.160.0030.07320.47
5.6.150.0030.05018.16
5.6.140.0030.07318.15
5.6.130.0170.03718.28
5.6.120.0070.05021.03
5.6.110.0100.08321.02
5.6.100.0170.06020.99
5.6.90.0170.07721.07
5.6.80.0070.06720.41
5.6.70.0200.08020.41
5.5.350.0100.04720.49
5.5.340.0000.04317.99
5.5.330.0130.08020.21
5.5.320.0100.07320.41
5.5.310.0300.07320.51
5.5.300.0100.07717.98
5.5.290.0070.04718.05
5.5.280.0030.09320.74
5.5.270.0030.04020.84
5.5.260.0130.07320.87
5.5.250.0000.06720.65
5.5.240.0100.05320.24
5.4.450.0600.06319.30
5.4.440.0770.06019.47
5.4.430.0070.06019.47
5.4.420.0830.05319.47
5.4.410.0730.06019.09
5.4.400.0230.05318.73
5.4.390.0270.06718.59
5.4.380.0200.07318.77
5.4.370.0170.06318.63
5.4.360.0170.05318.84
5.4.350.0230.05018.50
5.4.340.0270.04018.75
5.4.320.0200.05018.78
5.4.310.0130.05718.84
5.4.300.0130.05318.63
5.4.290.0230.05718.74
5.4.280.0230.04718.59
5.4.270.0070.06718.46
5.4.260.0200.05718.43
5.4.250.0200.05718.75
5.4.240.0100.06718.78
5.4.230.0170.05318.68
5.4.220.0270.04718.60
5.4.210.0100.06018.73
5.4.200.0170.04716.51
5.4.190.0100.05718.77
5.4.180.0100.05718.72
5.4.170.0130.05718.82
5.4.160.0230.04718.57
5.4.150.0270.04718.48
5.4.140.0130.06316.36
5.4.130.0100.06016.27
5.4.120.0270.04316.30
5.4.110.0170.05016.25
5.4.100.0130.06316.46
5.4.90.0130.05716.19
5.4.80.0170.06016.21
5.4.70.0270.06316.14
5.4.60.0170.05316.29
5.4.50.0270.04016.26
5.4.40.0330.05016.16
5.4.30.0170.05016.25
5.4.20.0170.05016.16
5.4.10.0170.07016.17
5.4.00.0170.05015.71
5.3.290.0270.05314.79
5.3.280.0370.05714.62
5.3.270.0300.05014.77
5.3.260.0200.05314.81
5.3.250.0270.04714.63
5.3.240.0230.04714.68
5.3.230.0170.05314.64
5.3.220.0170.05014.77
5.3.210.0270.05014.66
5.3.200.0130.05714.61
5.3.190.0130.05314.75
5.3.180.0230.05014.61
5.3.170.0170.05314.74
5.3.160.0270.04014.75
5.3.150.0230.05014.70
5.3.140.0130.05314.57
5.3.130.0170.05714.68
5.3.120.0170.06014.74
5.3.110.0170.05714.64
5.3.100.0270.06314.07
5.3.90.0130.06014.00
5.3.80.0130.06014.13
5.3.70.0130.05314.24
5.3.60.0200.05014.00
5.3.50.0270.04014.11
5.3.40.0130.05313.96
5.3.30.0100.05714.11
5.3.20.0100.05313.74
5.3.10.0230.04013.75
5.3.00.0230.04713.67
5.2.170.0200.03311.27
5.2.160.0130.04011.18
5.2.150.0230.03311.18
5.2.140.0170.03711.16
5.2.130.0070.04311.12
5.2.120.0100.04011.16
5.2.110.0170.03711.10
5.2.100.0230.03711.21
5.2.90.0170.03711.30
5.2.80.0170.04011.19
5.2.70.0130.04011.21
5.2.60.0130.04011.15
5.2.50.0270.04311.05
5.2.40.0130.04311.05
5.2.30.0200.04010.97
5.2.20.0070.04711.07
5.2.10.0170.03710.92
5.2.00.0270.04310.93
5.1.60.0130.0339.98
5.1.50.0070.04010.02
5.1.40.0200.02310.02
5.1.30.0100.03710.54
5.1.20.0100.05010.40
5.1.10.0170.03710.18
5.1.00.0170.03010.25
5.0.50.0100.0278.60
5.0.40.0070.0278.53
5.0.30.0070.0438.35
5.0.20.0100.0278.33
5.0.10.0100.0278.21
5.0.00.0100.0508.20
4.4.90.0070.0205.89
4.4.80.0100.0205.91
4.4.70.0030.0275.90
4.4.60.0070.0205.92
4.4.50.0070.0235.89
4.4.40.0070.0405.93
4.4.30.0030.0335.87
4.4.20.0100.0205.94
4.4.10.0130.0236.01
4.4.00.0070.0375.92
4.3.110.0100.0275.87
4.3.100.0070.0235.85
4.3.90.0100.0175.80
4.3.80.0100.0335.83
4.3.70.0030.0275.85
4.3.60.0030.0275.90
4.3.50.0130.0205.82
4.3.40.0100.0375.84
4.3.30.0030.0274.67
4.3.20.0030.0234.52
4.3.10.0000.0274.50
4.3.00.0130.0206.92