3v4l.org

run code in 300+ PHP versions simultaneously
<?php class time { const second = 1000; const minute = 60000; const hour = 3600000; const day = 86400000; const week = 604800000; const month = 18144000000; static public function now() { return microtime(true); } static public function since ($time) { return microtime(true)-$time; } } $start = time::now(); sleep(2); echo time::since($start);

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).

VersionSystem time (s)User time (s)Memory (MiB)
7.4.00.0110.01114.96
7.3.120.0080.01114.68
7.3.110.0030.01214.65
7.3.100.0040.01514.70
7.3.90.0030.01314.85
7.3.80.0100.00614.77
7.3.70.0050.01314.87
7.3.60.0120.00714.70
7.3.50.0000.01514.67
7.3.40.0050.01314.68
7.3.30.0060.01014.89
7.3.20.0080.00716.72
7.3.10.0130.00416.52
7.3.00.0100.00816.48
7.2.250.0070.01515.26
7.2.240.0050.01314.91
7.2.230.0080.01014.91
7.2.220.0100.01115.08
7.2.210.0080.01014.80
7.2.200.0070.01114.75
7.2.190.0030.01414.92
7.2.180.0070.01214.84
7.2.170.0120.00714.96
7.2.160.0120.00314.88
7.2.150.0100.00716.82
7.2.140.0080.01216.52
7.2.130.0100.01016.63
7.2.120.0000.01516.63
7.2.110.0070.01416.75
7.2.100.0000.01816.83
7.2.90.0030.01717.04
7.2.80.0070.01316.99
7.2.70.0090.00916.93
7.2.60.0120.00616.73
7.2.50.0070.01116.84
7.2.40.0100.00716.96
7.2.30.0070.01017.09
7.2.20.0100.01016.85
7.2.10.0030.01716.61
7.2.00.0050.01018.12
7.1.330.0100.00715.92
7.1.320.0080.00915.92
7.1.310.0040.00915.79
7.1.300.0080.00815.53
7.1.290.0110.00715.68
7.1.280.0050.01115.82
7.1.270.0050.01215.75
7.1.260.0100.00815.80
7.1.250.0000.01515.85
7.1.70.0070.01317.19
7.1.60.0110.01519.48
7.1.50.0070.01016.92
7.1.00.0100.07322.40
7.0.200.0110.00416.84
7.0.60.0070.04319.92
7.0.50.0070.04717.84
7.0.40.0030.07320.12
7.0.30.0300.04020.33
7.0.20.0230.08020.12
7.0.10.0130.08720.10
7.0.00.0070.08720.23
5.6.280.0030.07320.90
5.6.210.0170.05320.73
5.6.200.0070.04018.26
5.6.190.0000.05020.64
5.6.180.0070.08020.50
5.6.170.0100.04720.47
5.6.160.0170.07020.46
5.6.150.0000.07018.12
5.6.140.0100.03318.12
5.6.130.0130.08018.18
5.6.120.0200.06021.04
5.6.110.0130.07721.02
5.6.100.0130.08020.98
5.6.90.0100.06320.97
5.6.80.0000.05720.44
5.5.350.0030.03320.45
5.5.340.0070.04718.02
5.5.330.0070.04720.37
5.5.320.0100.07720.51
5.5.310.0300.08020.32
5.5.300.0030.09018.04
5.5.290.0030.08717.94
5.5.280.0070.08320.75
5.5.270.0070.07720.76
5.5.260.0100.07720.87
5.5.250.0070.08020.48
5.5.240.0170.06720.26
5.4.450.0730.03319.61
5.4.440.0300.05019.61
5.4.430.0200.04719.43
5.4.420.0070.05719.36
5.4.410.0170.06319.52
5.4.400.0170.04719.19
5.4.390.0070.05719.08
5.4.380.0070.07719.25
5.4.370.0070.05319.16
5.4.360.0170.04719.09
5.4.350.0100.05719.06
5.4.340.0030.06019.26
5.4.320.0070.07019.04
5.4.310.0100.06719.23
5.4.300.0100.05319.07
5.4.290.0170.05719.23
5.4.280.0170.05019.04
5.4.270.0070.05718.98
5.4.260.0230.04019.06
5.4.250.0170.05319.06
5.4.240.0000.06719.06
5.4.230.0030.06019.12
5.4.220.0070.06319.03
5.4.210.0170.04719.10
5.4.200.0130.05716.86
5.4.190.0130.05019.10
5.4.180.0100.05719.23
5.4.170.0100.06018.96
5.4.160.0070.05718.95
5.4.150.0070.06019.21
5.4.140.0070.05316.61
5.4.130.0170.04316.34
5.4.120.0100.05016.35
5.4.110.0100.05016.63
5.4.100.0200.05716.41
5.4.90.0100.05016.47
5.4.80.0100.04716.35
5.4.70.0130.06016.52
5.4.60.0000.06016.31
5.4.50.0100.04716.28
5.4.40.0100.05016.55
5.4.30.0100.05016.25
5.4.20.0170.04316.31
5.4.10.0170.04716.25
5.4.00.0100.05315.92
5.3.290.0100.05314.66
5.3.280.0070.05314.62
5.3.270.0200.04714.54
5.3.260.0200.04714.50
5.3.250.0200.04314.65
5.3.240.0130.05314.72
5.3.230.0130.05014.50
5.3.220.0070.06314.42
5.3.210.0100.06314.53
5.3.200.0170.04314.60
5.3.190.0100.07314.47
5.3.180.0030.06014.48
5.3.170.0170.04314.57
5.3.160.0100.05714.73
5.3.150.0170.04314.64
5.3.140.0130.04714.56
5.3.130.0000.06314.62
5.3.120.0070.05714.70
5.3.110.0070.05714.41
5.3.100.0130.05014.20
5.3.90.0070.05314.05
5.3.80.0200.04014.09
5.3.70.0100.05013.87
5.3.60.0100.05014.06
5.3.50.0030.05714.02
5.3.40.0070.05713.89
5.3.30.0030.05313.81
5.3.20.0070.05713.77
5.3.10.0170.06313.67
5.3.00.0070.05313.63
5.2.170.0070.04311.22
5.2.160.0030.04311.27
5.2.150.0130.03711.23
5.2.140.0070.04311.21
5.2.130.0100.04311.10
5.2.120.0170.04311.02
5.2.110.0070.04711.11
5.2.100.0100.04311.04
5.2.90.0000.04711.04
5.2.80.0000.05011.08
5.2.70.0100.05311.17
5.2.60.0070.04311.16
5.2.50.0070.05311.00
5.2.40.0170.04310.90
5.2.30.0100.04710.94
5.2.20.0000.04711.03
5.2.10.0070.04010.82
5.2.00.0000.04710.79
5.1.60.0000.0409.86
5.1.50.0100.0309.92
5.1.40.0070.0339.91
5.1.30.0070.05010.35
5.1.20.0000.04310.25
5.1.10.0070.03310.11
5.1.00.0100.03310.00
5.0.50.0070.0308.48
5.0.40.0100.0238.41
5.0.30.0030.0438.34
5.0.20.0070.0278.29
5.0.10.0000.0378.32
5.0.00.0100.0508.22
4.4.90.0000.0275.88
4.4.80.0070.0205.92
4.4.70.0000.0305.73
4.4.60.0030.0235.85
4.4.50.0100.0175.75
4.4.40.0100.0335.90
4.4.30.0030.0235.85
4.4.20.0030.0235.79
4.4.10.0070.0205.91
4.4.00.0070.0405.78
4.3.110.0030.0305.86
4.3.100.0070.0275.66
4.3.90.0030.0305.76
4.3.80.0000.0435.72
4.3.70.0030.0205.83
4.3.60.0000.0235.68
4.3.50.0070.0205.66
4.3.40.0000.0375.63
4.3.30.0000.0234.53
4.3.20.0200.0204.52
4.3.10.0030.0234.47
4.3.00.0070.0206.36

preferences:
23.7 ms | 401 KiB | 5 Q