3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { function foo() { $f = function() { $name = 'this'; var_dump(${$name}); }; $f(); } } $a = new A; $a->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.40.0120.00318.59
8.3.30.0100.00319.14
8.3.20.0070.00020.34
8.3.10.0040.00421.84
8.3.00.0040.00422.39
8.2.170.0060.00822.96
8.2.160.0070.00719.08
8.2.150.0080.00024.18
8.2.140.0070.00724.66
8.2.130.0030.00726.16
8.2.120.0060.00319.23
8.2.110.0050.00522.21
8.2.100.0080.00419.45
8.2.90.0050.00319.23
8.2.80.0030.00717.97
8.2.70.0040.00417.49
8.2.60.0050.00318.04
8.2.50.0040.00418.07
8.2.40.0040.00418.16
8.2.30.0000.00718.06
8.2.20.0050.00217.72
8.2.10.0040.00417.80
8.2.00.0000.00917.75
8.1.270.0030.00622.14
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0060.00323.72
8.1.230.0080.00419.07
8.1.220.0050.00317.74
8.1.210.0040.00418.77
8.1.200.0100.00017.35
8.1.190.0040.00417.66
8.1.180.0060.00318.92
8.1.170.0040.00418.28
8.1.160.0080.00022.12
8.1.150.0040.00418.68
8.1.140.0000.00717.49
8.1.130.0000.00717.79
8.1.120.0070.00017.35
8.1.110.0060.00317.45
8.1.100.0040.00417.45
8.1.90.0000.00717.35
8.1.80.0030.00617.41
8.1.70.0000.00717.34
8.1.60.0040.00417.61
8.1.50.0040.00417.55
8.1.40.0040.00417.55
8.1.30.0030.00517.63
8.1.20.0040.00417.55
8.1.10.0000.00717.59
8.1.00.0050.00317.41
8.0.300.0050.00218.77
8.0.290.0030.00617.18
8.0.280.0030.00318.39
8.0.270.0000.00717.25
8.0.260.0000.00816.77
8.0.250.0030.00317.01
8.0.240.0080.00016.96
8.0.230.0000.00816.98
8.0.220.0030.00316.83
8.0.210.0070.00016.90
8.0.200.0070.00016.96
8.0.190.0000.00816.88
8.0.180.0000.00816.79
8.0.170.0040.00416.88
8.0.160.0040.00416.80
8.0.150.0030.00316.82
8.0.140.0000.00716.83
8.0.130.0030.00313.33
8.0.120.0000.00916.88
8.0.110.0050.00316.80
8.0.100.0040.00416.89
8.0.90.0030.00316.84
8.0.80.0070.00816.89
8.0.70.0040.00416.78
8.0.60.0040.00416.82
8.0.50.0040.00416.93
8.0.30.0100.00817.00
8.0.20.0130.00517.40
8.0.10.0000.00816.97
8.0.00.0110.00716.66
7.4.330.0070.00015.00
7.4.320.0000.00616.43
7.4.300.0030.00316.59
7.4.290.0000.00716.51
7.4.280.0050.00316.58
7.4.270.0030.00316.50
7.4.260.0040.00416.54
7.4.250.0000.00816.40
7.4.240.0040.00416.53
7.4.230.0000.00716.37
7.4.220.0070.01116.61
7.4.210.0080.00616.58
7.4.200.0000.00716.37
7.4.190.0040.00416.55
7.4.160.0070.01116.70
7.4.150.0100.00617.40
7.4.140.0070.01317.86
7.4.130.0130.00816.52
7.4.120.0090.00816.44
7.4.110.0130.00716.45
7.4.100.0060.01616.41
7.4.90.0070.01116.47
7.4.80.0150.00619.39
7.4.70.0090.00916.50
7.4.60.0060.01016.56
7.4.50.0000.00816.64
7.4.40.0060.00922.77
7.4.30.0080.00816.56
7.4.00.0120.00315.14
7.3.330.0000.00513.28
7.3.320.0000.00513.22
7.3.310.0080.00016.20
7.3.300.0000.00616.30
7.3.290.0060.01116.36
7.3.280.0050.00916.33
7.3.270.0130.00417.40
7.3.260.0240.01616.30
7.3.250.0070.01116.44
7.3.240.0170.00316.47
7.3.230.0030.01316.39
7.3.210.0030.01316.38
7.3.200.0090.00819.39
7.3.190.0140.00716.66
7.3.180.0060.01016.44
7.3.170.0060.00916.57
7.3.160.0090.00616.36
7.3.120.0100.00314.85
7.3.10.0080.00416.60
7.3.00.0070.00716.63
7.2.330.0130.01016.38
7.2.320.0100.00716.50
7.2.310.0130.00316.71
7.2.300.0060.01016.73
7.2.290.0140.00716.64
7.2.130.0030.00716.86
7.2.120.0100.00516.90
7.2.110.0060.00716.90
7.2.100.0050.01116.90
7.2.90.0060.00616.90
7.2.80.0020.00716.81
7.2.70.0060.00816.67
7.2.60.0070.00716.91
7.2.50.0080.00416.71
7.2.40.0110.00516.88
7.2.30.0040.01016.86
7.2.20.0050.01016.90
7.2.10.0050.01016.99
7.2.00.0060.00817.82
7.1.250.0090.00315.75
7.1.200.0030.01015.57
7.1.100.0000.01117.83
7.1.70.0170.00317.15
7.1.60.0130.01019.82
7.1.50.0150.00916.93
7.1.00.0000.07022.30
7.0.200.0000.00716.34
7.0.140.0000.07322.22
7.0.60.0100.07719.92
7.0.50.0070.04717.96
7.0.40.0070.07020.15
7.0.30.0570.07320.13
7.0.20.0270.05720.12
7.0.10.0300.06320.12
7.0.00.0070.05320.33
5.6.280.0100.06721.13
5.6.210.0100.07720.52
5.6.200.0070.08018.21
5.6.190.0130.06020.63
5.6.180.0200.04320.61
5.6.170.0170.04020.45
5.6.160.0100.09020.50
5.6.150.0070.08018.11
5.6.140.0070.08318.18
5.6.130.0070.08018.16
5.6.120.0070.08021.00
5.6.110.0130.08020.99
5.6.100.0000.09021.09
5.6.90.0070.04020.97
5.6.80.0100.07720.54
5.6.70.0330.06320.38
5.5.350.0100.08320.32
5.5.340.0070.06718.02
5.5.330.0030.04020.29
5.5.320.0370.07320.34
5.5.310.0200.04020.35
5.5.300.0070.05718.07
5.5.290.0030.04017.94
5.5.280.0170.07020.88
5.5.270.0100.08020.77
5.5.260.0030.08720.65
5.5.250.0030.04320.62
5.5.240.0130.04720.36
5.4.450.0770.06319.20
5.4.440.0800.05319.70
5.4.430.0100.05719.38
5.4.420.0900.05719.47
5.4.410.0870.05719.07
5.4.400.1000.05718.82
5.4.390.1030.06718.83
5.4.380.0270.05718.61
5.4.370.0170.05318.43
5.4.360.0100.05718.80
5.4.350.0070.06018.76
5.4.340.0170.05018.70
5.4.320.0060.03812.51
5.4.310.0080.04612.51
5.4.300.0030.03912.51
5.4.290.0050.04012.50
5.4.280.0080.03512.40
5.4.270.0080.03612.40
5.4.260.0100.05019.01
5.4.250.0130.05018.71
5.4.240.0100.05718.78
5.4.230.0070.07719.05
5.4.220.0130.07318.95
5.4.210.0130.05018.91
5.4.200.0200.05018.87
5.4.190.0300.05318.89
5.4.180.0100.05318.86
5.4.170.0200.06018.95
5.4.160.0070.07318.91
5.4.150.0000.09318.90
5.4.140.0130.07716.55
5.4.130.0070.07716.57
5.4.120.0070.05316.57
5.4.110.0100.05016.39
5.4.100.0070.06716.59
5.4.90.0270.05716.50
5.4.80.0070.07016.54
5.4.70.0070.05016.66
5.4.60.0070.06316.38
5.4.50.0130.06716.42
5.4.40.0170.06716.37
5.4.30.0130.05016.48
5.4.20.0230.05316.37
5.4.10.0270.07016.32
5.4.00.0270.05315.86
5.3.290.0060.04412.80
5.3.280.0130.05014.60
5.3.270.0070.05314.71
5.3.260.0230.04014.69
5.3.250.0230.03714.60
5.3.240.0100.05014.61
5.3.230.0100.04714.58
5.3.220.0130.04314.64
5.3.210.0230.06714.65
5.3.200.0070.07314.55
5.3.190.0030.07014.64
5.3.180.0130.06714.39
5.3.170.0100.06014.65
5.3.160.0100.05714.65
5.3.150.0130.04714.64
5.3.140.0170.04714.58
5.3.130.0200.06014.45
5.3.120.0000.06014.68
5.3.110.0030.05714.76
5.3.100.0230.06013.86
5.3.90.0130.04714.08
5.3.80.0100.05714.00
5.3.70.0070.05314.20
5.3.60.0100.05014.10
5.3.50.0030.07314.18
5.3.40.0130.06314.13
5.3.30.0130.07013.99
5.3.20.0170.05713.80
5.3.10.0030.05013.63
5.3.00.0070.06313.71
5.2.170.0200.04711.23
5.2.160.0100.03711.23
5.2.150.0070.05311.23
5.2.140.0030.05011.21
5.2.130.0130.03011.18
5.2.120.0130.03311.06
5.2.110.0030.04711.18
5.2.100.0030.04311.17
5.2.90.0000.04711.09
5.2.80.0100.05011.04
5.2.70.0070.06011.25
5.2.60.0130.04010.95
5.2.50.0070.04011.20
5.2.40.0100.03311.07
5.2.30.0100.05010.95
5.2.20.0130.04710.87
5.2.10.0100.04711.03
5.2.00.0030.04310.78
5.1.60.0070.0479.85
5.1.50.0070.04710.00
5.1.40.0070.05010.06
5.1.30.0070.03310.41
5.1.20.0100.03310.34
5.1.10.0130.02710.07
5.1.00.0000.0409.90
5.0.50.0070.0278.34
5.0.40.0070.0338.36
5.0.30.0070.0538.25
5.0.20.0070.0238.43
5.0.10.0070.0238.23
5.0.00.0070.0478.14
4.4.90.0100.0237.49
4.4.80.0130.0207.49
4.4.70.0100.0237.49
4.4.60.0000.0237.49
4.4.50.0000.0237.49
4.4.40.0000.0477.49
4.4.30.0030.0307.49
4.4.20.0030.0307.49
4.4.10.0100.0237.49
4.4.00.0030.0407.49
4.3.110.0000.0237.49
4.3.100.0000.0277.49
4.3.90.0030.0207.49
4.3.80.0030.0407.49
4.3.70.0100.0137.49
4.3.60.0030.0207.49
4.3.50.0030.0207.49
4.3.40.0100.0407.49
4.3.30.0030.0207.49
4.3.20.0000.0237.49
4.3.10.0070.0207.49
4.3.00.0170.02310.14

preferences:
37.82 ms | 400 KiB | 5 Q