3v4l.org

run code in 300+ PHP versions simultaneously
<?php function foo($a = A) { echo $a; } foo(1); foo(); // Use of undefined constant A const A = 1; foo();

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.0140.00316.88
8.3.50.0100.00716.38
8.3.40.0130.00318.68
8.3.30.0070.00718.84
8.3.20.0040.01121.82
8.3.10.0000.00723.69
8.3.00.0080.00017.93
8.2.180.0120.00918.16
8.2.170.0040.01122.96
8.2.160.0070.00721.25
8.2.150.0040.00424.18
8.2.140.0030.00524.66
8.2.130.0070.00020.43
8.2.120.0000.00726.35
8.2.110.0000.00922.19
8.2.100.0060.00617.91
8.2.90.0050.00319.09
8.2.80.0050.00317.97
8.2.70.0050.00517.50
8.2.60.0040.00417.92
8.2.50.0060.00318.10
8.2.40.0000.00920.55
8.2.30.0040.00419.29
8.2.20.0000.00717.92
8.2.10.0000.00717.93
8.2.00.0040.00418.04
8.1.280.0060.00925.92
8.1.270.0040.00423.88
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0090.00319.05
8.1.230.0000.01119.10
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0030.00617.22
8.1.190.0030.00517.30
8.1.180.0040.00418.10
8.1.170.0040.00418.59
8.1.160.0040.00418.67
8.1.150.0000.00819.98
8.1.140.0030.00519.45
8.1.130.0050.00218.76
8.1.120.0070.00017.33
8.1.110.0080.00017.23
8.1.100.0000.00717.25
8.1.90.0000.00917.34
8.1.80.0000.00717.22
8.1.70.0030.00317.38
8.1.60.0030.00617.57
8.1.50.0070.00017.46
8.1.40.0060.00317.40
8.1.30.0000.00817.50
8.1.20.0020.00517.58
8.1.10.0030.00517.38
8.1.00.0000.00817.50
8.0.300.0000.00819.95
8.0.290.0040.00416.58
8.0.280.0030.00318.44
8.0.270.0030.00317.20
8.0.260.0000.00716.88
8.0.250.0030.00317.00
8.0.240.0070.00316.95
8.0.230.0030.00316.85
8.0.220.0030.00316.93
8.0.210.0000.00716.78
8.0.200.0040.00416.86
8.0.190.0080.00016.91
8.0.180.0060.00316.92
8.0.170.0040.00416.90
8.0.160.0030.00616.99
8.0.150.0000.00716.91
8.0.140.0050.00316.82
8.0.130.0030.00313.40
8.0.120.0040.00416.75
8.0.110.0040.00416.79
8.0.100.0040.00416.68
8.0.90.0000.00716.72
8.0.80.0120.00616.86
8.0.70.0040.00416.73
8.0.60.0000.00816.93
8.0.50.0000.00716.76
8.0.30.0120.00717.04
8.0.20.0130.00617.40
8.0.10.0050.00216.99
8.0.00.0130.00516.83
7.4.330.0020.00215.55
7.4.320.0030.00316.46
7.4.300.0000.00616.48
7.4.290.0100.00016.43
7.4.280.0050.00216.55
7.4.270.0000.00716.56
7.4.260.0060.00013.31
7.4.250.0040.00416.48
7.4.240.0050.00216.45
7.4.230.0030.00316.33
7.4.220.0090.01416.45
7.4.210.0110.00416.39
7.4.200.0040.00416.34
7.4.160.0110.00516.43
7.4.150.0090.00917.40
7.4.140.0130.00717.86
7.4.130.0120.01316.52
7.4.120.0150.00816.51
7.4.110.0090.00916.41
7.4.100.0140.00716.40
7.4.90.0140.00316.26
7.4.80.0030.01819.39
7.4.70.0060.01016.62
7.4.60.0110.00516.36
7.4.50.0040.01116.50
7.4.40.0100.00716.31
7.4.30.0080.00816.67
7.4.00.0070.01014.90
7.3.330.0000.00713.12
7.3.320.0050.00013.32
7.3.310.0030.00316.34
7.3.300.0030.00316.27
7.3.290.0110.00416.32
7.3.280.0090.00816.34
7.3.270.0080.01117.40
7.3.260.0150.00216.47
7.3.250.0120.00616.39
7.3.240.0130.00616.41
7.3.230.0100.00716.54
7.3.210.0100.00716.43
7.3.200.0060.01116.52
7.3.190.0090.00616.43
7.3.180.0150.00616.58
7.3.170.0090.00616.52
7.3.160.0090.00616.34
7.2.330.0110.00516.45
7.2.320.0090.00916.41
7.2.310.0080.00816.35
7.2.300.0030.01316.27
7.2.290.0000.01716.58
7.2.110.0310.00616.66
7.2.80.0190.00416.45
7.2.60.0110.00416.50
7.2.50.0040.01116.88
7.2.00.0000.01619.50
7.1.200.0080.00415.77
7.1.70.0000.00716.95
7.1.60.0430.00733.28
7.1.50.0400.01032.65
7.1.40.0600.01032.59
7.1.30.0500.02332.60
7.1.20.0470.01332.57
7.1.10.0330.00714.73
7.1.00.0300.00714.68
7.0.200.0330.00314.96
7.0.190.0470.00714.76
7.0.180.0330.00714.34
7.0.170.0300.01014.27
7.0.160.0370.02014.52
7.0.150.0300.00714.38
7.0.140.0270.01014.54
7.0.130.0330.01014.77
7.0.120.0230.01014.65
7.0.110.0270.01314.27
7.0.100.0300.00714.66
7.0.90.0400.00714.50
7.0.80.0300.01014.51
7.0.70.0530.00014.31
7.0.60.0430.01314.36
7.0.50.0370.01014.35
7.0.40.1270.00714.45
7.0.30.0470.01014.46
7.0.20.0430.00714.65
7.0.10.0200.01714.41
7.0.00.0300.01014.43

preferences:
66.08 ms | 401 KiB | 5 Q