3v4l.org

run code in 300+ PHP versions simultaneously
<?php function test() { $s = ""; $f = function($count) use (&$s) { if ($count <= 0) { return; } else { $s = $s."x"; $f($count-1); } }; $f(2); return $s; } echo test();

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.0120.00616.50
8.3.50.0040.01116.48
8.3.40.0120.00318.89
8.3.30.0130.00618.59
8.3.20.0050.00221.95
8.3.10.0040.00423.66
8.3.00.0040.00418.12
8.2.180.0070.01116.47
8.2.170.0170.00322.96
8.2.160.0130.00319.42
8.2.150.0000.00724.18
8.2.140.0000.00824.66
8.2.130.0040.00420.53
8.2.120.0080.00026.35
8.2.110.0080.00019.32
8.2.100.0080.00317.93
8.2.90.0090.00019.21
8.2.80.0000.00817.97
8.2.70.0000.00817.50
8.2.60.0000.00717.80
8.2.50.0080.00018.10
8.2.40.0030.00520.52
8.2.30.0040.00420.97
8.2.20.0030.00518.07
8.2.10.0050.00318.13
8.2.00.0030.00517.99
8.1.280.0140.00725.92
8.1.270.0000.00724.02
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0000.00921.31
8.1.230.0000.01117.76
8.1.220.0090.00017.77
8.1.210.0000.00918.77
8.1.200.0000.00917.48
8.1.190.0030.00617.23
8.1.180.0030.00518.10
8.1.170.0080.00018.65
8.1.160.0040.00418.89
8.1.150.0040.00420.33
8.1.140.0040.00419.58
8.1.130.0000.00718.94
8.1.120.0070.00017.39
8.1.110.0000.00817.52
8.1.100.0040.00417.48
8.1.90.0070.00017.30
8.1.80.0040.00317.46
8.1.70.0060.00317.48
8.1.60.0000.00817.64
8.1.50.0070.00017.51
8.1.40.0030.00617.49
8.1.30.0080.00017.66
8.1.20.0030.00517.56
8.1.10.0080.00017.48
8.1.00.0080.00017.38
8.0.300.0080.00018.77
8.0.290.0040.00416.75
8.0.280.0000.00718.32
8.0.270.0030.00317.14
8.0.260.0060.00016.88
8.0.250.0070.00017.02
8.0.240.0000.00716.95
8.0.230.0070.00017.01
8.0.220.0070.00016.96
8.0.210.0030.00316.97
8.0.200.0040.00416.89
8.0.190.0030.00717.01
8.0.180.0000.00816.89
8.0.170.0000.00817.04
8.0.160.0000.00916.80
8.0.150.0040.00716.97
8.0.140.0000.00716.94
8.0.130.0030.00313.45
8.0.120.0040.00416.82
8.0.110.0040.00416.83
8.0.100.0000.00716.82
8.0.90.0050.00217.03
8.0.80.0150.00716.91
8.0.70.0000.00716.77
8.0.60.0030.00616.95
8.0.50.0050.00317.02
8.0.30.0110.00917.11
8.0.20.0070.01317.40
8.0.10.0000.00816.98
8.0.00.0100.00716.75
7.4.330.0060.00015.55
7.4.320.0000.00616.43
7.4.300.0050.00316.50
7.4.290.0060.00316.52
7.4.280.0070.00016.52
7.4.270.0040.00416.51
7.4.260.0000.00816.51
7.4.250.0040.00416.47
7.4.240.0050.00216.53
7.4.230.0030.00316.34
7.4.220.0090.00916.47
7.4.210.0030.01616.58
7.4.200.0070.00016.70
7.4.160.0080.00816.53
7.4.150.0140.00317.40
7.4.140.0090.00917.86
7.4.130.0060.01616.51
7.4.120.0120.00816.54
7.4.110.0100.00716.57
7.4.100.0100.01316.64
7.4.90.0170.00016.57
7.4.80.0030.01619.39
7.4.70.0060.00916.50
7.4.60.0040.01216.48
7.4.50.0000.01216.40
7.4.40.0090.00616.39
7.4.30.0140.00316.48
7.4.00.0070.01015.20
7.3.330.0030.00313.20
7.3.320.0060.00013.34
7.3.310.0030.00316.37
7.3.300.0070.00016.24
7.3.290.0090.00816.37
7.3.280.0080.00916.37
7.3.270.0130.00317.40
7.3.260.0110.00716.57
7.3.250.0110.00616.56
7.3.240.0090.00816.60
7.3.230.0130.00316.57
7.3.210.0110.00516.49
7.3.200.0090.00616.41
7.3.190.0100.00716.56
7.3.180.0190.00416.34
7.3.170.0070.01416.61
7.3.160.0110.01116.52
7.3.10.0040.01116.86
7.3.00.0030.00716.84
7.2.330.0100.01316.60
7.2.320.0160.00316.72
7.2.310.0100.01416.71
7.2.300.0110.00616.44
7.2.290.0130.00716.61
7.2.130.0070.00716.64
7.2.120.0070.01016.49
7.2.110.0130.00316.43
7.2.100.0030.00716.90
7.2.90.0070.01017.06
7.2.80.0050.00516.73
7.2.70.0090.00616.66
7.2.60.0020.01216.79
7.2.50.0060.00316.87
7.2.40.0090.00616.82
7.2.30.0040.01116.99
7.2.20.0090.00916.86
7.2.10.0030.00917.00
7.2.00.0070.01017.00
7.1.250.0030.00715.69
7.1.200.0080.00415.55
7.1.70.0000.00817.03
7.1.60.0170.02032.93
7.1.50.0230.01332.68
7.1.40.1170.01732.60
7.1.30.0300.01732.75
7.1.20.0270.01032.70
7.1.10.2130.01314.73
7.1.00.1600.01314.79
7.0.200.0030.01314.86
7.0.190.1670.00714.88
7.0.180.1330.01014.59
7.0.170.0100.01014.32
7.0.160.0170.00314.18
7.0.150.2170.01314.10
7.0.140.2700.01714.70
7.0.130.2230.00714.88
7.0.120.2670.01314.61
7.0.110.2700.00714.60
7.0.100.2200.01014.23
7.0.90.1330.01014.15
7.0.80.2470.01314.34
7.0.70.2370.01314.39
7.0.60.2270.01714.42
7.0.50.2100.01714.43
7.0.40.2200.01014.60
7.0.30.1730.01014.59
7.0.20.2170.01014.57
7.0.10.2000.01014.41
7.0.00.1630.02014.56

preferences:
75.57 ms | 401 KiB | 5 Q