3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = "hello"; $b = "hi"; $val = "a"; echo $$val; // outputs "hello" echo "\n"; $val = "b"; echo $$val; // outputs "hi"

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.0.0beta10.0140.00716.81
8.0.0alpha30.0130.00516.57
8.0.0alpha20.0210.00716.56
8.0.0alpha10.0210.00516.65
7.4.90.0030.01516.51
7.4.80.0130.01417.94
7.4.70.0220.00516.47
7.4.60.0160.01016.52
7.4.50.0190.00516.42
7.4.40.0170.00916.30
7.4.30.0100.01116.39
7.4.20.0270.00516.48
7.4.10.0220.00415.81
7.4.00.0050.00915.36
7.3.210.0060.01216.29
7.3.200.0210.00317.89
7.3.190.0060.01516.49
7.3.180.0170.00516.46
7.3.170.0200.00916.51
7.3.160.0190.00316.38
7.3.150.0210.01016.25
7.3.140.0150.01616.23
7.3.130.0130.01515.48
7.3.120.0110.01015.23
7.3.110.0130.00815.49
7.3.100.0140.00515.43
7.3.90.0150.00515.65
7.3.80.0160.00515.64
7.3.70.0120.01015.34
7.3.60.0100.01015.33
7.3.50.0160.00515.23
7.3.40.0120.00915.24
7.3.30.0150.00415.23
7.3.20.0150.00815.83
7.3.10.0180.00915.98
7.3.00.0170.00915.98
7.2.330.0070.01016.23
7.2.320.0250.00816.71
7.2.310.0160.01116.46
7.2.300.0200.01016.48
7.2.290.0180.00816.50
7.2.280.0230.00516.23
7.2.270.0170.01516.43
7.2.260.0110.01115.68
7.2.250.0120.01315.78
7.2.240.0110.01215.87
7.2.230.0110.01015.65
7.2.220.0140.00915.75
7.2.210.0140.01015.49
7.2.200.0140.00915.70
7.2.190.0170.00815.36
7.2.180.0130.00715.36
7.2.170.0130.00915.45
7.2.160.0130.01015.55
7.2.150.0160.00716.07
7.2.140.0130.01416.09
7.2.130.0190.00416.17
7.2.120.0100.01316.14
7.2.110.0100.00916.19
7.2.100.0150.00616.20
7.2.90.0120.00916.19
7.2.80.0090.01216.12
7.2.70.0090.00716.29
7.2.60.0140.01116.37
7.2.50.1020.00416.26
7.2.40.0100.00816.25
7.2.30.0150.00716.17
7.2.20.0150.01016.56
7.2.10.0180.01016.59
7.2.00.0110.01016.98
7.1.330.0120.00915.37
7.1.320.0180.00415.37
7.1.310.0140.00615.54
7.1.300.0160.01015.04
7.1.290.0160.00514.92
7.1.280.0120.00814.96
7.1.270.0120.01015.01
7.1.260.0120.00914.87
7.1.250.0110.00714.98
7.1.240.0140.00815.06
7.1.230.0130.01114.95
7.1.220.0120.01214.76
7.1.210.0120.00814.95
7.1.200.0130.00415.14
7.1.190.0160.00814.99
7.1.180.0150.00814.84
7.1.170.0110.01115.02
7.1.160.0150.00714.99
7.1.150.0180.00414.84
7.1.140.0160.01015.36
7.1.130.0130.01315.41
7.1.120.0160.01015.40
7.1.110.0130.01015.25
7.1.100.0170.00815.24
7.1.90.0130.00715.20
7.1.80.0140.00515.26
7.1.70.0140.00515.55
7.1.60.0170.00919.05
7.1.50.0160.00918.94
7.1.40.0160.00618.91
7.1.30.0170.00918.94
7.1.20.0340.01218.89
7.1.10.0100.01015.39
7.1.00.0150.01015.25
7.0.330.0170.00514.15
7.0.320.0260.00614.29
7.0.310.0170.00414.29
7.0.300.0200.00814.33
7.0.290.0160.01214.16
7.0.280.0250.00714.33
7.0.270.0150.01214.91
7.0.260.0170.01215.06
7.0.250.0240.00914.81
7.0.240.0160.01014.88
7.0.230.0170.00514.80
7.0.220.0140.01114.72
7.0.210.0120.01414.31
7.0.200.0110.00915.25
7.0.190.0110.00915.28
7.0.180.0260.00915.10
7.0.170.0160.00815.08
7.0.160.0140.00615.06
7.0.150.0110.00815.12
7.0.140.0120.00815.03
7.0.130.0110.01015.22
7.0.120.0120.00815.23
7.0.110.0110.01015.17
7.0.100.0120.01015.19
7.0.90.0310.01115.17
7.0.80.0110.00915.26
7.0.70.0130.00715.14
7.0.60.0150.00914.98
7.0.50.0200.00515.18
7.0.40.0110.00915.20
7.0.30.0140.00815.13
7.0.20.0130.00915.22
7.0.10.0100.01015.19
7.0.00.0090.01015.08
5.6.400.0150.00714.98
5.6.390.0130.01115.02
5.6.380.0170.01114.92
5.6.370.0120.01414.88
5.6.360.0190.00715.09
5.6.350.0200.00415.10
5.6.340.0190.01214.87
5.6.330.0200.00915.07
5.6.320.0210.01215.21
5.6.310.0140.01114.99
5.6.300.0140.04017.83
5.6.290.0160.03517.88
5.6.280.0140.03818.07
5.6.270.0160.03817.99
5.6.260.0160.03017.98
5.6.250.0110.03917.99
5.6.240.0170.03417.92
5.6.230.0140.03517.93
5.6.220.0160.03617.89
5.6.210.0150.03617.95
5.6.200.0180.03417.97
5.6.190.0130.04217.97
5.6.180.0160.03417.89
5.6.170.0130.03417.90
5.6.160.0140.02917.93
5.6.150.0160.03917.88
5.6.140.0180.03317.83
5.6.130.0160.03017.97
5.6.120.0110.03517.99
5.6.110.0160.03717.96
5.6.100.0170.03617.88
5.6.90.0190.03817.88
5.6.80.0120.02717.57
5.6.70.0140.03517.58
5.6.60.0140.03417.57
5.6.50.0150.03217.61
5.6.40.0130.03617.70
5.6.30.0140.03517.54
5.6.20.0160.02917.48
5.6.10.0160.03317.57
5.6.00.0140.02917.47
5.5.380.0160.03116.16
5.5.370.0160.03216.31
5.5.360.0170.03616.23
5.5.350.0180.03216.29
5.5.340.0120.03116.46
5.5.330.0150.04016.38
5.5.320.0140.03616.46
5.5.310.0180.02916.40
5.5.300.0140.03616.45
5.5.290.0120.03516.52
5.5.280.0130.03516.45
5.5.270.0160.03116.36
5.5.260.0130.03516.44
5.5.250.0130.03016.36
5.5.240.0130.02916.05
5.5.230.0110.03016.11
5.5.220.0160.03316.22
5.5.210.0150.02816.13
5.5.200.0140.02816.02
5.5.190.0140.02716.09
5.5.180.0090.03816.12
5.5.170.0110.01415.10
5.5.160.0140.03116.14
5.5.150.0140.02916.09
5.5.140.0150.04116.03
5.5.130.0140.03516.12
5.5.120.0150.03316.13
5.5.110.0120.04016.14
5.5.100.0140.03016.04
5.5.90.0150.02816.07
5.5.80.0110.02716.09
5.5.70.0150.02716.01
5.5.60.0140.03216.03
5.5.50.0120.03416.04
5.5.40.0270.02716.03
5.5.30.0120.03316.08
5.5.20.0120.03516.13
5.5.10.0120.03416.04
5.5.00.0170.03216.03
5.4.450.0130.03215.51
5.4.440.0110.03215.59
5.4.430.0120.03315.49
5.4.420.0120.03315.45
5.4.410.0110.03215.47
5.4.400.0100.03215.29
5.4.390.0120.02815.27
5.4.380.0110.03315.37
5.4.370.0110.02715.20
5.4.360.0110.03015.26
5.4.350.0110.02815.30
5.4.340.0170.02915.34
5.4.330.0090.00811.54
5.4.320.0170.03415.23
5.4.310.0120.03915.20
5.4.300.0130.03115.29
5.4.290.0140.03415.27
5.4.280.0090.03015.22
5.4.270.0150.02815.23
5.4.260.0120.02615.32
5.4.250.0100.02815.29
5.4.240.0100.03415.22
5.4.230.0110.03415.30
5.4.220.0080.03715.25
5.4.210.0160.02715.17
5.4.200.0140.03115.29
5.4.190.0130.03215.22
5.4.180.0100.03515.33
5.4.170.0150.02615.16
5.4.160.0120.02815.21
5.4.150.0140.03015.32
5.4.140.0130.03314.26
5.4.130.0160.02514.27
5.4.120.0130.02814.41
5.4.110.0120.03214.32
5.4.100.0120.03014.40
5.4.90.0110.02714.32
5.4.80.0120.02614.16
5.4.70.0130.02714.30
5.4.60.0120.02514.34
5.4.50.0100.03014.28
5.4.40.0110.02814.33
5.4.30.0110.02814.30
5.4.20.0110.02914.36
5.4.10.0090.03014.26
5.4.00.0130.02714.17
5.3.290.0090.03213.90
5.3.280.0110.03113.83
5.3.270.0120.02713.84
5.3.260.0130.02813.90
5.3.250.0140.02613.82
5.3.240.0110.03413.85
5.3.230.0130.02513.82
5.3.220.0080.03413.80
5.3.210.0110.03213.82
5.3.200.0120.02713.76
5.3.190.0120.02713.80
5.3.180.0110.03213.83
5.3.170.0110.03013.87
5.3.160.0120.03013.79
5.3.150.0120.02513.85
5.3.140.0100.02713.78
5.3.130.0120.03213.86
5.3.120.0070.03313.83
5.3.110.0110.02913.89
5.3.100.0130.02713.68
5.3.90.0100.03313.67
5.3.80.0110.02713.67
5.3.70.0150.02613.65
5.3.60.0110.02913.62
5.3.50.0140.02613.72
5.3.40.0150.02813.65
5.3.30.0150.02913.66
5.3.20.0100.03013.59
5.3.10.0080.03213.51
5.3.00.0100.03013.53