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.4.20.0040.00717.56
8.4.10.0030.00617.57
8.3.150.0030.00620.68
8.3.140.0080.00017.15
8.3.130.0090.00018.44
8.3.120.0110.00019.09
8.3.110.0050.00518.55
8.3.100.0080.00016.46
8.3.90.0080.00026.77
8.3.80.0030.00619.36
8.3.70.0070.01318.30
8.3.60.0070.01116.61
8.3.50.0090.01022.11
8.3.40.0170.00318.52
8.3.30.0090.01319.01
8.3.20.0000.00720.12
8.3.10.0080.00023.66
8.3.00.0080.00019.56
8.2.260.0050.00318.93
8.2.250.0050.00317.07
8.2.240.0060.00317.02
8.2.230.0090.00620.94
8.2.220.0040.00437.54
8.2.210.0100.00326.77
8.2.200.0080.00018.88
8.2.190.0060.00916.75
8.2.180.0130.00318.29
8.2.170.0130.00322.96
8.2.160.0170.00320.35
8.2.150.0090.00924.18
8.2.140.0080.00024.66
8.2.130.0100.00626.16
8.2.120.0120.00619.36
8.2.110.0090.00020.52
8.2.100.0040.00817.78
8.2.90.0030.00617.84
8.2.80.0080.00022.13
8.2.70.0000.00817.63
8.2.60.0050.00517.50
8.2.50.0090.00417.53
8.2.40.0100.00217.53
8.2.30.0080.00418.38
8.2.20.0100.00217.55
8.2.10.0120.00017.82
8.2.00.0050.00717.66
8.1.310.0080.00018.21
8.1.300.0060.00320.10
8.1.290.0090.00030.84
8.1.280.0090.00625.92
8.1.270.0090.00023.90
8.1.260.0000.00726.35
8.1.250.0040.00428.09
8.1.240.0030.00723.91
8.1.230.0060.00623.93
8.1.220.0060.00317.74
8.1.210.0030.00618.77
8.1.200.0040.00417.35
8.1.190.0060.00517.11
8.1.180.0060.00717.42
8.1.170.0080.00517.36
8.1.160.0110.00118.02
8.1.150.0100.00318.04
8.1.140.0110.00217.09
8.1.130.0100.00217.96
8.1.120.0080.00317.22
8.1.110.0080.00417.30
8.1.100.0050.00617.22
8.1.90.0060.00617.35
8.1.80.0060.00617.30
8.1.70.0070.00517.46
8.1.60.0060.00717.49
8.1.50.0100.00317.51
8.1.40.0090.00417.42
8.1.30.0050.00917.39
8.1.20.0050.00717.47
8.1.10.0110.00217.25
8.1.00.0120.00317.30
8.0.300.0070.00019.98
8.0.290.0090.00016.63
8.0.280.0090.00317.46
8.0.270.0060.00616.84
8.0.260.0080.00317.44
8.0.250.0070.00516.72
8.0.240.0070.00516.73
8.0.230.0060.00516.78
8.0.220.0050.00616.71
8.0.210.0080.00416.75
8.0.200.0040.00716.72
8.0.190.0100.00216.84
8.0.180.0080.00316.66
8.0.170.0070.00516.77
8.0.160.0060.00616.76
8.0.150.0080.00416.74
8.0.140.0090.00516.63
8.0.130.0070.00414.92
8.0.120.0060.00616.71
8.0.110.0100.00216.84
8.0.100.0080.00416.85
8.0.90.0080.00416.68
8.0.80.0110.00816.70
8.0.70.0050.00616.71
8.0.60.0090.00316.65
8.0.50.0060.00616.60
8.0.30.0110.00816.97
8.0.20.0130.00817.14
8.0.10.0100.00216.82
8.0.00.0100.00816.81
7.4.330.0090.00115.76
7.4.320.0050.00716.58
7.4.300.0080.00416.48
7.4.290.0100.00216.53
7.4.280.0110.00316.50
7.4.270.0030.00816.52
7.4.260.0080.00316.51
7.4.250.0120.00016.48
7.4.240.0050.00516.52
7.4.230.0060.00616.46
7.4.220.0110.00716.61
7.4.210.0080.00716.49
7.4.200.0060.00616.58
7.4.190.0110.00416.52
7.4.180.0070.00716.52
7.4.160.0070.00816.45
7.4.150.0120.00516.96
7.4.140.0130.00517.41
7.4.130.0080.01016.49
7.4.120.0130.00716.50
7.4.110.0090.00716.56
7.4.100.0130.00416.48
7.4.90.0090.00716.51
7.4.80.0110.01217.47
7.4.70.0170.00616.49
7.4.60.0110.01116.52
7.4.50.0170.00416.45
7.4.40.0160.00616.37
7.4.30.0090.01016.43
7.4.20.0200.00416.50
7.4.10.0170.00516.05
7.4.00.0050.01015.65
7.3.330.0070.00414.77
7.3.320.0080.00114.68
7.3.310.0060.00516.33
7.3.300.0120.00016.36
7.3.290.0080.00616.29
7.3.280.0090.00916.27
7.3.270.0110.00716.96
7.3.260.0120.00516.47
7.3.250.0090.00716.37
7.3.240.0110.00416.44
7.3.230.0110.00516.50
7.3.220.0160.00016.52
7.3.210.0110.00616.41
7.3.200.0180.00417.43
7.3.190.0100.01016.50
7.3.180.0130.00716.48
7.3.170.0170.00816.52
7.3.160.0170.00316.43
7.3.150.0140.00916.38
7.3.140.0150.00816.38
7.3.130.0110.01415.83
7.3.120.0100.00915.55
7.3.110.0130.00615.83
7.3.100.0120.00615.79
7.3.90.0130.00615.94
7.3.80.0140.00415.94
7.3.70.0110.00915.73
7.3.60.0100.00915.63
7.3.50.0140.00515.55
7.3.40.0110.00915.56
7.3.30.0150.00315.55
7.3.20.0150.00616.00
7.3.10.0160.00916.09
7.3.00.0150.00816.09
7.2.340.0110.00316.52
7.2.330.0070.00916.38
7.2.320.0190.00516.62
7.2.310.0160.00716.48
7.2.300.0150.00916.49
7.2.290.0160.00616.51
7.2.280.0110.01116.37
7.2.270.0140.01016.47
7.2.260.0110.00815.96
7.2.250.0080.01316.03
7.2.240.0110.00916.08
7.2.230.0110.00815.94
7.2.220.0130.00716.01
7.2.210.0130.00715.83
7.2.200.0140.00715.97
7.2.190.0160.00615.65
7.2.180.0130.00615.65
7.2.170.0130.00715.71
7.2.160.0130.00815.79
7.2.150.0150.00716.18
7.2.140.0120.01116.19
7.2.130.0170.00516.24
7.2.120.0100.01116.21
7.2.110.0090.01016.26
7.2.100.0140.00616.26
7.2.90.0120.00816.25
7.2.80.0100.01116.20
7.2.70.0100.00716.33
7.2.60.0140.01016.39
7.2.50.0840.00416.32
7.2.40.0110.00716.30
7.2.30.0210.00616.24
7.2.20.0140.00916.55
7.2.10.0170.00916.57
7.2.00.0100.01016.92
7.1.330.0120.00715.75
7.1.320.0150.00415.75
7.1.310.0120.00715.87
7.1.300.0140.00915.41
7.1.290.0150.00515.32
7.1.280.0110.00815.35
7.1.270.0110.00915.39
7.1.260.0120.00815.28
7.1.250.0110.00615.29
7.1.240.0140.00615.43
7.1.230.0140.00815.34
7.1.220.0130.00915.20
7.1.210.0110.00715.34
7.1.200.0130.00415.42
7.1.190.0150.00715.37
7.1.180.0140.00715.26
7.1.170.0110.01015.40
7.1.160.0140.00615.38
7.1.150.0210.00415.26
7.1.140.0150.01015.59
7.1.130.0130.01115.63
7.1.120.0150.00915.63
7.1.110.0140.00815.50
7.1.100.0160.00615.49
7.1.90.0130.00715.46
7.1.80.0130.00615.51
7.1.70.0140.00515.71
7.1.60.0160.00818.63
7.1.50.0150.00818.54
7.1.40.0150.00618.51
7.1.30.0150.01018.53
7.1.20.0310.01018.49
7.1.10.0090.01015.58
7.1.00.0140.00915.46
7.0.330.0160.00314.94
7.0.320.0210.00515.03
7.0.310.0150.00415.03
7.0.300.0170.00715.06
7.0.290.0130.01014.95
7.0.280.0200.00615.06
7.0.270.0180.01015.31
7.0.260.0150.01015.42
7.0.250.0210.00715.24
7.0.240.0150.00815.29
7.0.230.0160.00415.23
7.0.220.0140.00815.17
7.0.210.0100.01314.86
7.0.200.0100.00915.51
7.0.190.0110.00715.53
7.0.180.0230.00815.38
7.0.170.0150.00715.37
7.0.160.0130.00515.35
7.0.150.0120.00615.40
7.0.140.0120.00715.33
7.0.130.0120.00815.48
7.0.120.0110.00815.49
7.0.110.0110.00915.44
7.0.100.0120.00915.46
7.0.90.0270.01015.44
7.0.80.0110.00815.51
7.0.70.0120.00815.41
7.0.60.0140.00915.29
7.0.50.0230.00615.45
7.0.40.0090.01015.47
7.0.30.0110.00915.41
7.0.20.0130.00715.48
7.0.10.0110.00815.46
7.0.00.0090.00915.37
5.6.400.0140.00515.49
5.6.390.0130.00715.52
5.6.380.0160.00715.46
5.6.370.0110.01215.43
5.6.360.0160.00615.56
5.6.350.0160.00515.57
5.6.340.0160.00915.42
5.6.330.0170.00715.55
5.6.320.0140.01315.65
5.6.310.0130.00715.50
5.6.300.0130.03317.57
5.6.290.0150.02917.61
5.6.280.0140.03017.76
5.6.270.0150.03117.70
5.6.260.0150.02517.69
5.6.250.0100.03217.70
5.6.240.0160.02817.64
5.6.230.0120.03017.65
5.6.220.0160.02917.61
5.6.210.0140.02917.67
5.6.200.0170.02717.68
5.6.190.0130.03317.68
5.6.180.0150.02817.61
5.6.170.0120.02817.63
5.6.160.0140.02417.64
5.6.150.0140.03217.61
5.6.140.0160.02717.57
5.6.130.0150.02517.68
5.6.120.0110.02817.69
5.6.110.0140.03017.67
5.6.100.0150.03017.61
5.6.90.0170.03017.61
5.6.80.0120.02317.36
5.6.70.0130.02917.36
5.6.60.0140.02717.36
5.6.50.0130.02817.39
5.6.40.0120.03117.46
5.6.30.0130.02917.34
5.6.20.0150.02317.29
5.6.10.0140.02717.36
5.6.00.0140.02317.28
5.5.380.0140.02716.23
5.5.370.0140.02716.35
5.5.360.0150.02916.29
5.5.350.0170.02616.34
5.5.340.0120.02516.47
5.5.330.0130.03416.41
5.5.320.0130.03016.47
5.5.310.0160.02416.42
5.5.300.0140.02816.47
5.5.290.0120.02916.52
5.5.280.0120.02916.46
5.5.270.0150.02516.39
5.5.260.0120.02916.46
5.5.250.0120.02416.39
5.5.240.0130.02316.14
5.5.230.0100.02516.19
5.5.220.0150.02716.28
5.5.210.0150.02216.21
5.5.200.0130.02416.12
5.5.190.0130.02316.18
5.5.180.0090.03216.20
5.5.170.0100.01015.57
5.5.160.0130.02616.21
5.5.150.0130.02416.17
5.5.140.0130.03316.13
5.5.130.0140.02816.20
5.5.120.0150.02716.21
5.5.110.0100.03416.22
5.5.100.0140.02416.14
5.5.90.0140.02316.16
5.5.80.0110.02216.18
5.5.70.0140.02216.11
5.5.60.0120.02716.13
5.5.50.0120.02816.14
5.5.40.0240.02216.13
5.5.30.0110.02716.16
5.5.20.0110.02916.20
5.5.10.0110.02816.14
5.5.00.0150.02716.13
5.4.450.0120.02715.71
5.4.440.0110.02615.77
5.4.430.0110.02715.69
5.4.420.0110.02615.66
5.4.410.0100.02615.68
5.4.400.0100.02615.54
5.4.390.0110.02315.52
5.4.380.0100.02715.60
5.4.370.0110.02215.46
5.4.360.0100.02515.51
5.4.350.0100.02315.55
5.4.340.0160.02315.58
5.4.330.0080.00713.20
5.4.320.0150.02815.49
5.4.310.0120.03115.47
5.4.300.0120.02615.54
5.4.290.0130.02815.52
5.4.280.0080.02515.48
5.4.270.0130.02415.49
5.4.260.0110.02215.56
5.4.250.0100.02315.54
5.4.240.0100.02715.48
5.4.230.0110.02715.54
5.4.220.0080.03015.51
5.4.210.0140.02215.44
5.4.200.0140.02515.54
5.4.190.0120.02615.48
5.4.180.0090.02915.57
5.4.170.0140.02115.43
5.4.160.0110.02315.47
5.4.150.0130.02515.56
5.4.140.0130.02614.71
5.4.130.0130.02114.72
5.4.120.0130.02214.83
5.4.110.0110.02614.76
5.4.100.0100.02514.82
5.4.90.0100.02214.76
5.4.80.0100.02214.63
5.4.70.0120.02214.74
5.4.60.0110.02114.78
5.4.50.0100.02414.73
5.4.40.0100.02214.77
5.4.30.0090.02414.75
5.4.20.0110.02314.79
5.4.10.0090.02514.71
5.4.00.0110.02214.64
5.3.290.0080.02814.43
5.3.280.0110.02514.37
5.3.270.0110.02314.38
5.3.260.0110.02414.42
5.3.250.0130.02214.36
5.3.240.0110.02714.39
5.3.230.0120.02014.36
5.3.220.0080.02814.34
5.3.210.0090.02714.36
5.3.200.0110.02114.31
5.3.190.0110.02214.35
5.3.180.0110.02614.37
5.3.170.0110.02414.40
5.3.160.0120.02414.34
5.3.150.0120.02014.38
5.3.140.0100.02214.33
5.3.130.0110.02614.39
5.3.120.0080.02614.37
5.3.110.0100.02414.41
5.3.100.0130.02114.25
5.3.90.0100.02614.24
5.3.80.0110.02214.24
5.3.70.0140.02014.22
5.3.60.0110.02314.20
5.3.50.0130.02114.28
5.3.40.0120.02414.22
5.3.30.0140.02314.23
5.3.20.0100.02414.18
5.3.10.0080.02614.11
5.3.00.0090.02514.12

preferences:
30.28 ms | 403 KiB | 5 Q