3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { private $a = [['a' => 'func']]; function func(){echo 'yay';} public function __construct() { foreach ($this->a as $a) $this->$a['a'](); } } new A;

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.0040.01818.43
8.3.50.0070.00716.46
8.3.40.0090.00918.97
8.3.30.0150.00018.67
8.3.20.0100.00720.35
8.3.10.0080.00023.65
8.3.00.0060.00323.39
8.2.180.0120.00918.66
8.2.170.0070.01422.96
8.2.160.0070.00720.39
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0060.00319.66
8.2.120.0040.00426.35
8.2.110.0030.00622.11
8.2.100.0080.00417.93
8.2.90.0040.00419.34
8.2.80.0040.00417.97
8.2.70.0000.00817.75
8.2.60.0040.00418.04
8.2.50.0050.00318.07
8.2.40.0060.00321.97
8.2.30.0050.00219.51
8.2.20.0050.00217.81
8.2.10.0030.00518.20
8.2.00.0050.00318.13
8.1.280.0120.00325.92
8.1.270.0150.00320.38
8.1.260.0100.00028.09
8.1.250.0040.00428.09
8.1.240.0030.00623.98
8.1.230.0000.01119.01
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0060.00317.25
8.1.190.0040.00417.23
8.1.180.0070.00018.10
8.1.170.0030.00518.71
8.1.160.0040.00420.70
8.1.150.0000.00818.74
8.1.140.0040.00419.51
8.1.130.0040.00417.63
8.1.120.0000.00717.38
8.1.110.0040.00417.34
8.1.100.0050.00317.30
8.1.90.0000.00717.32
8.1.80.0050.00217.40
8.1.70.0040.00417.39
8.1.60.0000.00817.42
8.1.50.0000.00817.45
8.1.40.0080.00017.35
8.1.30.0040.00417.49
8.1.20.0040.00417.45
8.1.10.0000.00817.46
8.1.00.0000.00717.34
8.0.300.0040.00418.77
8.0.290.0040.00416.75
8.0.280.0070.00018.50
8.0.270.0030.00317.31
8.0.260.0030.00317.25
8.0.250.0040.00417.05
8.0.240.0030.00317.01
8.0.230.0030.00316.97
8.0.220.0030.00616.89
8.0.210.0040.00416.86
8.0.200.0030.00317.00
8.0.190.0050.00316.98
8.0.180.0000.00816.99
8.0.170.0080.00016.92
8.0.160.0000.00816.98
8.0.150.0000.00816.96
8.0.140.0000.00816.98
8.0.130.0030.00313.43
8.0.120.0040.00416.86
8.0.110.0030.00516.97
8.0.100.0040.00416.98
8.0.90.0080.00016.83
8.0.80.0060.01516.87
8.0.70.0040.00416.91
8.0.60.0050.00316.95
8.0.50.0030.00516.77
8.0.30.0110.00617.12
8.0.20.0120.00617.40
8.0.10.0000.00817.13
8.0.00.0130.00916.88
7.4.330.0000.00516.67
7.4.320.0000.00616.40
7.4.300.0000.00816.52
7.4.290.0040.00416.52
7.4.280.0000.01016.51
7.4.270.0000.00716.65
7.4.260.0000.00716.56
7.4.250.0060.00316.50
7.4.240.0010.00616.61
7.4.230.0000.00716.64
7.4.220.0080.00816.43
7.4.210.0030.01216.69
7.4.200.0000.00716.39
7.4.160.0100.00716.68
7.4.150.0090.00917.40
7.4.140.0140.00517.86
7.4.130.0110.01116.60
7.4.120.0110.00716.65
7.4.110.0160.00616.38
7.4.100.0130.00616.60
7.4.90.0110.00716.70
7.4.80.0130.01019.39
7.4.70.0050.01316.31
7.4.60.0060.01216.55
7.4.50.0120.00616.65
7.4.40.0110.00616.48
7.4.30.0090.01216.61
7.4.00.0110.00414.97
7.3.330.0000.00513.26
7.3.320.0030.00313.26
7.3.310.0080.00016.41
7.3.300.0040.00416.38
7.3.290.0090.01116.40
7.3.280.0070.01016.41
7.3.270.0040.01517.40
7.3.260.0070.01016.68
7.3.250.0090.00816.42
7.3.240.0110.01116.37
7.3.230.0140.00716.65
7.3.210.0130.00716.71
7.3.200.0110.00819.39
7.3.190.0060.00916.39
7.3.180.0110.00416.34
7.3.170.0140.00316.42
7.3.160.0090.01316.46
7.2.330.0070.01016.66
7.2.320.0170.00716.73
7.2.310.0090.00616.51
7.2.300.0060.01316.68
7.2.290.0110.00516.63
7.2.60.0030.01317.01
7.2.00.0040.00819.23
7.1.200.0100.00315.75
7.1.100.0040.00718.07
7.1.70.0040.00417.08
7.1.60.0100.01319.27
7.1.50.0070.01016.82
7.1.00.0030.07722.36
7.0.200.0000.00716.82
7.0.100.0100.05320.03
7.0.90.0070.05719.93
7.0.80.0070.07319.95
7.0.70.0030.07719.97
7.0.60.0170.05019.85
7.0.50.0070.06320.12
7.0.40.0100.07720.11
7.0.30.0030.07720.13
7.0.20.0130.07320.10
7.0.10.0130.04020.14
7.0.00.0170.04720.07
5.6.280.0030.03320.78
5.6.250.0070.07020.67
5.6.240.0070.05020.57
5.6.230.0100.05320.51
5.6.220.0100.08020.59
5.6.210.0030.04320.69
5.6.200.0100.05021.08
5.6.190.0070.04321.04
5.6.180.0200.07321.18
5.6.170.0030.04320.96
5.6.160.0100.05321.11
5.6.150.0070.07321.05
5.6.140.0070.08321.17
5.6.130.0130.08021.01
5.6.120.0030.08021.02
5.6.110.0130.06320.94
5.6.100.0130.07021.04
5.6.90.0030.07321.00
5.6.80.0170.07020.34
5.6.70.0070.04320.44
5.6.60.0200.03320.45
5.6.50.0130.07320.50
5.6.40.0030.07720.38
5.6.30.0070.07320.54
5.6.20.0130.06020.39
5.6.10.0070.07720.42
5.6.00.0130.07020.35
5.5.380.0100.05320.38
5.5.370.0070.04720.50
5.5.360.0030.07720.37
5.5.350.0030.07320.45
5.5.340.0100.07720.89
5.5.330.0070.08720.74
5.5.320.0070.05020.73
5.5.310.0230.05320.93
5.5.300.0030.07720.64
5.5.290.0070.04720.76
5.5.280.0030.09720.89
5.5.270.0070.05020.79
5.5.260.0030.08320.87
5.5.250.0030.08020.55
5.5.240.0070.06720.28
5.5.230.0030.08020.23
5.5.220.0130.07320.15
5.5.210.0130.06020.21
5.5.200.0130.07720.00
5.5.190.0070.04320.16
5.5.180.0200.06720.28
5.5.160.0170.06719.99
5.5.150.0070.07319.95
5.5.140.0200.05020.28
5.5.130.0070.05720.23
5.5.120.0130.07720.23
5.5.110.0030.08320.18
5.5.100.0170.06719.96
5.5.90.0000.08320.17
5.5.80.0070.08320.17
5.5.70.0170.07320.06
5.5.60.0000.05320.00
5.5.50.0130.05720.05
5.5.40.0030.04720.00
5.5.30.0130.06720.05
5.5.20.0100.05720.04
5.5.10.0130.07320.08
5.5.00.0070.06720.07

preferences:
56.85 ms | 400 KiB | 5 Q