3v4l.org

run code in 300+ PHP versions simultaneously
<?php for($position = sizeof($length)-1; ($position >= 0)&&(($units = $difference/$length[$position])<=1); $position--); if($position < 0) $position = 0; $_tm = $current_time-($difference%$length[$position]);

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)
8.3.60.0070.01418.33
8.3.50.0100.01021.21
8.3.40.0110.00418.58
8.3.30.0120.00918.70
8.3.20.0060.00320.34
8.3.10.0040.00423.48
8.3.00.0080.00023.31
8.2.180.0060.00916.63
8.2.170.0090.00922.96
8.2.160.0030.01022.08
8.2.150.0060.00624.18
8.2.140.0080.00024.66
8.2.130.0090.00026.16
8.2.120.0030.00617.50
8.2.110.0030.00722.05
8.2.100.0060.00617.91
8.2.90.0040.00419.27
8.2.80.0040.00417.97
8.2.70.0030.00517.63
8.2.60.0040.00417.80
8.2.50.0030.00618.07
8.2.40.0060.00321.06
8.2.30.0040.00419.72
8.2.20.0040.00417.75
8.2.10.0000.00718.16
8.2.00.0080.00018.04
8.1.280.0100.00325.92
8.1.270.0030.00520.33
8.1.260.0060.00326.35
8.1.250.0080.00028.09
8.1.240.0090.00023.96
8.1.230.0060.00621.04
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0000.00917.36
8.1.190.0030.00517.36
8.1.180.0040.00418.10
8.1.170.0060.00318.56
8.1.160.0030.00522.00
8.1.150.0040.00418.73
8.1.140.0040.00417.31
8.1.130.0030.00317.54
8.1.120.0080.00017.40
8.1.110.0070.00017.39
8.1.100.0040.00417.45
8.1.90.0050.00317.34
8.1.80.0040.00417.39
8.1.70.0000.00717.39
8.1.60.0030.00617.43
8.1.50.0040.00417.34
8.1.40.0030.00617.42
8.1.30.0030.00517.40
8.1.20.0070.00017.63
8.1.10.0040.00417.43
8.1.00.0040.00417.33
8.0.300.0000.00818.77
8.0.290.0040.00416.63
8.0.280.0030.00318.38
8.0.270.0000.00716.82
8.0.260.0070.00017.14
8.0.250.0070.00017.03
8.0.240.0030.00316.91
8.0.230.0070.00016.93
8.0.220.0030.00316.93
8.0.210.0000.00716.93
8.0.200.0070.00016.94
8.0.190.0070.00016.82
8.0.180.0040.00416.95
8.0.170.0040.00417.02
8.0.160.0070.00016.87
8.0.150.0050.00316.93
8.0.140.0000.00816.96
8.0.130.0080.00013.39
8.0.120.0000.00816.85
8.0.110.0040.00416.95
8.0.100.0030.00516.81
8.0.90.0000.00816.84
8.0.80.0040.01116.95
8.0.70.0000.00817.00
8.0.60.0040.00416.73
8.0.50.0000.00717.00
8.0.30.0030.01317.14
8.0.20.0110.00817.40
8.0.10.0040.00416.96
8.0.00.0130.00616.69
7.4.330.0000.00515.15
7.4.320.0070.00016.50
7.4.300.0000.00616.64
7.4.290.0070.00016.46
7.4.280.0040.00416.58
7.4.270.0030.00316.39
7.4.260.0030.00316.50
7.4.250.0040.00416.39
7.4.240.0060.00116.49
7.4.230.0000.00716.25
7.4.220.0110.00716.70
7.4.210.0050.01016.51
7.4.200.0070.00016.63
7.4.160.0120.00616.63
7.4.150.0140.00417.40
7.4.140.0140.00817.86
7.4.130.0080.01016.42
7.4.120.0120.00716.51
7.4.110.0080.00816.54
7.4.100.0100.01316.54
7.4.90.0090.00616.55
7.4.80.0000.01619.39
7.4.70.0100.00716.42
7.4.60.0090.00816.57
7.4.50.0000.00816.36
7.4.40.0090.00916.29
7.4.30.0100.01316.46
7.4.00.0000.01714.73
7.3.330.0020.00213.16
7.3.320.0050.00013.27
7.3.310.0000.00716.25
7.3.300.0030.00316.31
7.3.290.0040.00416.34
7.3.280.0110.00816.34
7.3.270.0130.00317.40
7.3.260.0090.00916.45
7.3.250.0150.00716.47
7.3.240.0110.00616.27
7.3.230.0140.00316.39
7.3.210.0130.00316.55
7.3.200.0110.00516.41
7.3.190.0030.01216.49
7.3.180.0080.00816.43
7.3.170.0080.00816.62
7.3.160.0160.00616.55
7.2.330.0080.00816.75
7.2.320.0000.01716.69
7.2.310.0070.01416.72
7.2.300.0070.01016.39
7.2.290.0140.00316.43
7.2.60.0060.00916.86
7.2.00.0060.00919.43
7.1.200.0090.00616.02
7.1.100.0000.01217.78
7.1.70.0020.00517.09
7.1.60.0070.01419.42
7.1.50.0100.01317.04
7.1.00.0100.07022.30
7.0.200.0180.00716.34
7.0.60.0030.08319.98
7.0.50.0100.07717.82
7.0.40.0070.04320.23
7.0.30.0370.06720.29
7.0.20.0430.06720.00
7.0.10.0200.07720.30
7.0.00.0070.09020.03
5.6.210.0100.05320.50
5.6.200.0070.08018.13
5.6.190.0130.05720.35
5.6.180.0330.05020.61
5.6.170.0270.06320.51
5.6.160.0100.08020.37
5.6.150.0070.06018.12
5.6.140.0030.07318.23
5.6.130.0070.08318.18
5.6.120.0070.08721.02
5.6.110.0070.04020.93
5.6.100.0170.07720.99
5.6.90.0070.04021.05
5.6.80.0100.08020.40
5.5.350.0130.03320.29
5.5.340.0100.03717.95
5.5.330.0070.08320.15
5.5.320.0300.05020.30
5.5.310.0370.03320.29
5.5.300.0200.06018.01
5.5.290.0100.06017.98
5.5.280.0100.06720.73
5.5.270.0100.08020.82
5.5.260.0100.08020.78
5.5.250.0000.04320.78
5.5.240.0130.07020.15
5.4.450.1000.06319.63
5.4.440.0570.06319.10
5.4.430.0870.06019.62
5.4.420.0700.05019.54
5.4.410.0830.04719.34
5.4.400.0700.05019.18
5.4.390.0830.07018.80
5.4.380.0700.05019.15
5.4.370.0770.04719.17
5.4.360.0830.05018.77
5.4.350.0770.05019.19
5.4.340.0830.05719.26
5.4.320.0800.05318.80
5.4.310.0830.04018.95
5.4.300.0730.06019.28
5.4.290.0630.05719.30
5.4.280.0730.04319.30
5.4.270.0630.05319.16
5.4.260.0730.04718.80
5.4.250.0230.06019.27
5.4.240.0230.04318.77
5.4.230.0100.06319.27
5.4.220.0170.06319.12
5.4.210.0770.05019.10
5.4.200.0730.05016.64
5.4.190.0900.04019.07
5.4.180.0730.05719.13
5.4.170.0700.05318.93
5.4.160.0700.05019.24
5.4.150.0670.05718.95
5.4.140.0970.06016.38
5.4.130.0730.04716.18
5.4.120.0700.05316.50
5.4.110.0600.05316.44
5.4.100.0630.05016.44
5.4.90.0700.05016.25
5.4.80.0800.03316.30
5.4.70.0870.04716.36
5.4.60.0630.04316.16
5.4.50.0570.05316.35
5.4.40.0630.04716.22
5.4.30.0700.04316.25
5.4.20.0630.04716.29
5.4.10.1000.04716.31
5.4.00.0630.05015.84
5.3.290.0630.05014.45
5.3.280.0730.06314.43
5.3.270.0500.06314.54
5.3.260.0570.05714.43
5.3.250.0770.04314.45
5.3.240.0630.06314.59
5.3.230.0570.07314.55
5.3.220.0630.05014.55
5.3.210.0700.05014.66
5.3.200.0770.04014.58
5.3.190.0670.04714.41
5.3.180.0500.05714.40
5.3.170.0570.07314.42
5.3.160.0730.05014.51
5.3.150.0530.05014.43
5.3.140.0600.05014.54
5.3.130.0670.05014.53
5.3.120.0400.06014.48
5.3.110.0670.05314.38
5.3.100.0170.04713.91
5.3.90.0200.05013.89
5.3.80.0270.04314.00
5.3.70.0130.05013.81
5.3.60.0130.05013.93
5.3.50.0130.05013.83
5.3.40.0130.06713.72
5.3.30.0170.04713.77
5.3.20.0130.07013.54
5.3.10.0130.05013.51
5.3.00.0130.06313.47
5.2.170.0270.05310.94
5.2.160.0230.04310.96
5.2.150.0000.05311.09
5.2.140.0030.05311.00
5.2.130.0270.02710.94
5.2.120.0170.03710.95
5.2.110.0130.03711.04
5.2.100.0030.04710.95
5.2.90.0070.04711.18
5.2.80.0170.03310.98
5.2.70.0100.04311.03
5.2.60.0070.04311.02
5.2.50.0200.03711.04
5.2.40.0100.03710.83
5.2.30.0100.04010.99
5.2.20.0030.04310.80
5.2.10.0100.03710.75
5.2.00.0030.04310.87
5.1.60.0100.0309.91
5.1.50.0130.02710.01
5.1.40.0070.03310.05
5.1.30.0070.03710.41
5.1.20.0130.03310.26
5.1.10.0130.03010.08
5.1.00.0130.0339.98
5.0.50.0100.0278.52
5.0.40.0030.0308.29
5.0.30.0070.0408.24
5.0.20.0000.0308.23
5.0.10.0070.0278.32
5.0.00.0070.0438.16
4.4.90.0170.0135.82
4.4.80.0070.0205.83
4.4.70.0030.0235.75
4.4.60.0000.0275.84
4.4.50.0100.0175.84
4.4.40.0100.0305.80
4.4.30.0100.0175.86
4.4.20.0070.0205.85
4.4.10.0070.0175.88
4.4.00.0030.0375.86
4.3.110.0070.0205.82
4.3.100.0130.0205.70
4.3.90.0030.0205.84
4.3.80.0100.0275.75
4.3.70.0100.0275.74
4.3.60.0100.0205.66
4.3.50.0070.0205.66
4.3.40.0030.0335.73
4.3.30.0000.0234.42
4.3.20.0030.0274.49
4.3.10.0030.0274.36
4.3.00.0000.0308.42

preferences:
48.04 ms | 401 KiB | 5 Q