3v4l.org

run code in 300+ PHP versions simultaneously
<?php $foo = 'foo var'; const foo = 'foo_const'; $foo_const = 'dynamic var lookup'; var_dump("${foo}"); var_dump("${(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.0090.00618.43
8.3.50.0120.00916.58
8.3.40.0090.01218.63
8.3.30.0070.00718.51
8.3.20.0030.00624.18
8.3.10.0090.00024.66
8.3.00.0040.00426.16
8.2.180.0080.00625.92
8.2.170.0030.01218.89
8.2.160.0130.00322.96
8.2.150.0040.00425.66
8.2.140.0000.00824.66
8.2.130.0050.00326.16
8.2.120.0040.00420.97
8.2.110.0090.00020.57
8.2.100.0040.00817.91
8.2.90.0040.00419.76
8.2.80.0040.00419.36
8.2.70.0050.00517.38
8.2.60.0050.00317.93
8.2.50.0040.00418.07
8.2.40.0000.00818.22
8.2.30.0040.00418.13
8.2.20.0000.00718.03
8.2.10.0040.00419.23
8.2.00.0040.00419.12
8.1.280.0110.00325.92
8.1.270.0040.00423.99
8.1.260.0040.00426.35
8.1.250.0060.00328.09
8.1.240.0040.00822.38
8.1.230.0040.00820.91
8.1.220.0030.00517.76
8.1.210.0050.00319.04
8.1.200.0030.00617.35
8.1.190.0000.00917.35
8.1.180.0030.00618.10
8.1.170.0040.00418.46
8.1.160.0000.00818.84
8.1.150.0050.00318.75
8.1.140.0030.00518.88
8.1.130.0050.00317.30
8.1.120.0000.00717.49
8.1.110.0030.00617.33
8.1.100.0050.00217.51
8.1.90.0000.00717.46
8.1.80.0000.01017.47
8.1.70.0000.00817.45
8.1.60.0050.00817.59
8.1.50.0080.00017.50
8.1.40.0000.00717.47
8.1.30.0040.00417.48
8.1.20.0000.00717.59
8.1.10.0120.00317.41
8.1.00.0160.00317.26
8.0.300.0030.00620.07
8.0.290.0040.00416.75
8.0.280.0070.00018.39
8.0.270.0000.00717.98
8.0.260.0060.00016.75
8.0.250.0040.00416.98
8.0.240.0000.00716.94
8.0.230.0070.00016.83
8.0.220.0070.00016.81
8.0.210.0030.00316.81
8.0.200.0040.00416.84
8.0.190.0080.00016.86
8.0.180.0040.00416.83
8.0.170.0030.00616.87
8.0.160.0000.00716.77
8.0.150.0040.00416.80
8.0.140.0070.00616.76
8.0.130.0110.00415.53
8.0.120.0110.00716.75
8.0.110.0110.00416.87
8.0.100.0110.00516.81
8.0.90.0100.00616.92
8.0.80.0120.00816.82
8.0.70.0110.00516.78
8.0.60.0110.00516.80
8.0.50.0110.00516.82
8.0.30.0120.00716.88
8.0.20.0150.00417.09
8.0.10.0140.00216.91
8.0.00.0090.00616.80
7.4.330.0000.00515.55
7.4.320.0000.00716.64
7.4.300.0060.00316.54
7.4.290.0100.00016.59
7.4.280.0070.00016.50
7.4.270.0170.00216.49
7.4.260.0140.00315.36
7.4.250.0130.00516.54
7.4.240.0130.00516.52
7.4.230.0150.00316.48
7.4.220.0090.00416.50
7.4.210.0110.00716.52
7.4.200.0130.00316.53
7.4.190.0150.00416.55
7.4.180.0140.00616.53
7.4.160.0140.00616.46
7.4.150.0160.00416.43
7.4.140.0150.00416.37
7.4.130.0140.00616.50
7.4.120.0140.00516.31
7.4.110.0140.00416.41
7.4.100.0150.00516.54
7.4.90.0140.00616.41
7.4.80.0110.00616.42
7.4.70.0110.00716.43
7.4.60.0110.00616.42
7.4.50.0130.00516.43
7.4.40.0190.00116.35
7.4.30.0120.00616.50
7.4.20.0140.00616.40
7.4.10.0120.00616.38
7.4.00.0100.00716.42
7.3.330.0120.00416.27
7.3.320.0110.00315.13
7.3.310.0130.00116.20
7.3.300.0000.01016.26
7.3.290.0100.00516.29
7.3.280.0110.00516.26
7.3.270.0070.00216.18
7.3.260.0050.00616.36
7.3.250.0080.00016.33
7.3.240.0050.00216.36
7.3.230.0060.00616.27
7.3.220.0070.00216.05
7.3.210.0100.00216.25
7.3.200.0080.00316.11
7.3.190.0040.00816.20
7.3.180.0080.00416.16
7.3.170.0040.00816.23
7.3.160.0040.00816.20
7.3.150.0070.00516.21
7.3.140.0070.00616.16
7.3.130.0080.00616.24
7.3.120.0120.00716.37
7.3.110.0170.00216.17
7.3.100.0170.00316.04
7.3.90.0130.00716.33
7.3.80.0170.00216.34
7.3.70.0150.00516.17
7.3.60.0130.00716.33
7.3.50.0150.00516.34
7.3.40.0140.00516.30
7.3.30.0160.00416.21
7.3.20.0140.00717.46
7.3.10.0170.00417.50
7.3.00.0150.00717.63
7.2.340.0130.00816.22
7.2.330.0160.00416.25
7.2.320.0140.00616.32
7.2.310.0140.00516.35
7.2.300.0180.00416.27
7.2.290.0150.00516.40
7.2.280.0200.00116.40
7.2.270.0140.00616.38
7.2.260.0170.00316.41
7.2.250.0140.00616.31
7.2.240.0140.00616.38
7.2.230.0140.00616.32
7.2.220.0130.00716.29
7.2.210.0150.00516.39
7.2.200.0130.00816.46
7.2.190.0160.00316.47
7.2.180.0160.00316.37
7.2.170.0130.00716.46
7.2.160.0110.00916.47
7.2.150.0120.00817.77
7.2.140.0160.00517.76
7.2.130.0140.00817.71
7.2.120.0130.00917.77
7.2.110.0150.00817.78
7.2.100.0160.00517.84
7.2.90.0180.00417.63
7.2.80.0160.00517.69
7.2.70.0120.00917.75
7.2.60.0170.00517.75
7.2.50.0130.00917.75
7.2.40.0140.00717.78
7.2.30.0130.00717.73
7.2.20.0150.00617.81
7.2.10.0170.00417.78
7.2.00.0190.00317.76

preferences:
29.56 ms | 400 KiB | 5 Q