3v4l.org

run code in 300+ PHP versions simultaneously
<?php $tests = [1, 999, 1000, 50001, 100000, 2999]; foreach ($tests as $test) { $upper = intval(($test - 1) / 1000) * 1000 + 1000; echo "$test is between " . ($upper - 999) . " and $upper\n"; }

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.4.140.0100.01417.64
8.4.130.0070.00317.86
8.4.120.0140.00620.81
8.4.110.0080.00818.71
8.4.100.0110.01217.83
8.4.90.0140.00720.29
8.4.80.0120.00718.77
8.4.70.0110.01018.68
8.4.60.0120.00818.72
8.4.50.0100.01020.14
8.4.40.0070.01417.73
8.4.30.0080.00818.48
8.4.20.0070.01318.04
8.4.10.0040.00419.27
8.3.270.0130.00616.49
8.3.260.0140.00616.49
8.3.250.0110.00918.64
8.3.240.0120.00616.70
8.3.230.0060.00216.45
8.3.220.0110.00719.03
8.3.210.0110.00716.67
8.3.200.0050.00816.56
8.3.190.0100.00917.14
8.3.180.0080.00716.49
8.3.170.0160.00317.24
8.3.160.0120.00620.11
8.3.150.0140.00418.80
8.3.140.0030.00717.10
8.3.130.0000.00818.28
8.3.120.0030.00620.76
8.3.110.0000.01420.94
8.3.100.0190.00024.06
8.3.90.0080.00026.77
8.3.80.0060.00316.62
8.3.70.0040.01116.58
8.3.60.0110.00618.16
8.3.50.0050.01624.54
8.3.40.0100.00321.86
8.3.30.0080.00818.67
8.3.20.0040.00424.18
8.3.10.0030.00524.66
8.3.00.0080.00026.16
8.2.290.0110.00820.40
8.2.280.0140.00618.09
8.2.270.0060.01217.12
8.2.260.0070.01116.76
8.2.250.0040.00416.45
8.2.240.0060.00317.13
8.2.230.0000.00822.58
8.2.220.0000.00837.54
8.2.210.0060.00326.77
8.2.200.0000.01116.63
8.2.190.0060.01216.75
8.2.180.0070.01125.92
8.2.170.0140.00418.96
8.2.160.0140.00022.96
8.2.150.0040.00425.66
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0050.00326.35
8.2.110.0060.00322.03
8.2.100.0120.00017.78
8.2.90.0000.01117.38
8.2.80.0050.00318.82
8.2.70.0000.00817.63
8.2.60.0040.00417.93
8.2.50.0000.00818.07
8.2.40.0000.00718.22
8.2.30.0060.00318.09
8.2.20.0050.00217.93
8.2.10.0040.00419.37
8.2.00.0040.00419.41
8.1.330.0150.00521.74
8.1.320.0120.00716.07
8.1.310.0060.00318.35
8.1.300.0130.00617.98
8.1.290.0090.00330.84
8.1.280.0060.00925.92
8.1.270.0070.00023.99
8.1.260.0050.00228.09
8.1.250.0040.00428.09
8.1.240.0000.00918.75
8.1.230.0110.00021.02
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0060.00317.36
8.1.190.0000.00817.35
8.1.180.0040.00418.10
8.1.170.0040.00418.59
8.1.160.0030.00618.93
8.1.150.0060.00318.80
8.1.140.0000.00918.89
8.1.130.0040.00420.14
8.1.120.0030.00617.46
8.1.110.0040.00417.33
8.1.100.0070.00017.45
8.1.90.0000.00817.46
8.1.80.0040.00417.34
8.1.70.0030.00717.38
8.1.60.0030.00617.61
8.1.50.0000.00717.44
8.1.40.0040.00417.55
8.1.30.0040.00417.66
8.1.20.0040.00417.51
8.1.10.0000.00717.51
8.1.00.0070.00317.39
8.0.300.0040.00418.77
8.0.290.0070.00016.63
8.0.280.0030.00318.51
8.0.270.0070.00018.04
8.0.260.0060.00018.57
8.0.250.0030.00316.89
8.0.240.0000.00717.01
8.0.230.0030.00316.96
8.0.220.0030.00316.90
8.0.210.0070.00016.93
8.0.200.0000.00716.94
8.0.190.0000.00716.95
8.0.180.0030.00716.79
8.0.170.0030.00616.87
8.0.160.0000.00716.72
8.0.150.0040.00416.69
8.0.140.0030.00416.73
8.0.130.0030.00313.37
8.0.120.0040.00416.77
8.0.110.0040.00416.88
8.0.100.0000.00716.82
8.0.90.0040.00416.71
8.0.80.0060.01016.90
8.0.70.0040.00416.87
8.0.60.0030.00416.79
8.0.50.0040.00416.90
8.0.30.0070.01317.08
8.0.20.0110.00817.24
8.0.10.0000.00716.83
8.0.00.0130.01416.99
7.4.330.0030.00315.55
7.4.320.0000.00616.56
7.4.300.0000.00616.42
7.4.290.0040.00416.45
7.4.280.0070.00016.61
7.4.270.0050.00216.52
7.4.260.0000.00513.17
7.4.250.0050.00216.51
7.4.240.0070.00016.54
7.4.230.0000.00716.39
7.4.220.0020.00516.69
7.4.210.0080.00816.53
7.4.200.0070.00016.33
7.4.130.0150.00816.49
7.4.120.0060.01816.39
7.4.110.0090.00916.48
7.4.100.0180.00616.24
7.4.90.0120.00816.39
7.4.80.0110.00816.48
7.4.70.0120.00916.50
7.4.60.0140.01016.34
7.4.50.0100.01016.46
7.4.40.0090.00916.55
7.4.30.0100.00916.34
7.4.20.0080.01116.34
7.4.10.0210.00316.61
7.4.00.0040.01416.28
7.3.330.0000.01016.10
7.3.320.0000.00513.05
7.3.310.0030.00316.46
7.3.300.0030.00316.34
7.3.290.0050.01116.33
7.3.260.0090.01016.51
7.3.250.0000.01816.63
7.3.240.0120.01216.46
7.3.230.0140.00316.55
7.3.220.0190.00616.26
7.3.210.0090.00916.37
7.3.200.0060.01316.48
7.3.190.0150.00916.37
7.3.180.0180.00316.13
7.3.170.0070.01416.39
7.3.160.0090.00916.39
7.3.150.0160.01016.17
7.3.140.0150.00316.39
7.3.130.0120.01216.32
7.3.120.0160.00816.34
7.3.110.0100.01316.39
7.3.100.0140.01116.41
7.3.90.0070.01116.46
7.3.80.0050.01716.63
7.3.70.0120.00616.39
7.3.60.0110.00816.58
7.3.50.0210.00716.38
7.3.40.0190.01016.34
7.3.30.0060.01216.55
7.3.20.0140.01116.32
7.3.10.0100.01016.33
7.3.00.0100.01016.38

preferences:
31.8 ms | 403 KiB | 5 Q