3v4l.org

run code in 300+ PHP versions simultaneously
<?php abstract class A { public function test() { $i = new static; echo "A"; } } class B extends A { public function test2() { $i = new static; echo "B"; } } $a = new A; $a->test(); $a->test2(); $b = new B; $b->test2();

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.0100.01016.63
8.3.50.0130.00521.94
8.3.40.0100.00318.79
8.3.30.0160.00018.77
8.3.20.0070.00020.09
8.3.10.0040.00421.73
8.3.00.0000.00823.65
8.2.180.0140.00716.50
8.2.170.0040.01122.96
8.2.160.0040.01120.47
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0070.00319.44
8.2.120.0040.00426.35
8.2.110.0100.00020.94
8.2.100.0080.00417.70
8.2.90.0000.00719.09
8.2.80.0000.00817.97
8.2.70.0030.01217.38
8.2.60.0060.00317.80
8.2.50.0030.00618.09
8.2.40.0000.00922.32
8.2.30.0000.00719.36
8.2.20.0040.00417.67
8.2.10.0040.00417.94
8.2.00.0000.00717.91
8.1.280.0140.01025.92
8.1.270.0040.01122.19
8.1.260.0090.00628.09
8.1.250.0050.00328.09
8.1.240.0090.00021.17
8.1.230.0040.00817.42
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0090.00017.22
8.1.190.0080.00017.23
8.1.180.0000.00818.10
8.1.170.0060.00318.51
8.1.160.0000.00720.63
8.1.150.0040.00420.54
8.1.140.0050.00319.43
8.1.130.0000.00717.52
8.1.120.0050.00217.30
8.1.110.0030.00417.34
8.1.100.0050.00317.34
8.1.90.0030.00317.29
8.1.80.0000.00917.40
8.1.70.0030.00517.37
8.1.60.0030.00517.34
8.1.50.0040.00417.43
8.1.40.0060.00317.32
8.1.30.0040.00417.55
8.1.20.0000.00817.54
8.1.10.0040.00417.50
8.1.00.0050.00217.35
8.0.300.0040.00418.77
8.0.290.0040.00416.63
8.0.280.0030.00318.24
8.0.270.0000.00817.20
8.0.260.0000.00617.14
8.0.250.0040.00416.91
8.0.240.0030.00616.99
8.0.230.0030.00316.98
8.0.220.0000.00816.87
8.0.210.0030.00516.89
8.0.200.0050.00216.92
8.0.190.0070.00016.82
8.0.180.0030.00516.81
8.0.170.0030.00516.94
8.0.160.0040.00416.96
8.0.150.0000.00716.95
8.0.140.0030.00316.73
8.0.130.0060.00013.30
8.0.120.0000.00716.87
8.0.110.0040.00416.84
8.0.100.0000.00816.76
8.0.90.0000.00816.75
8.0.80.0090.00616.91
8.0.70.0040.00416.81
8.0.60.0040.00416.87
8.0.50.0040.00416.91
8.0.30.0120.00617.15
8.0.20.0100.00817.40
8.0.10.0000.00716.82
8.0.00.0100.00916.72
7.4.330.0020.00216.67
7.4.320.0000.00716.47
7.4.300.0070.00016.42
7.4.290.0040.00416.52
7.4.280.0060.00316.42
7.4.270.0070.00016.34
7.4.260.0040.00416.46
7.4.250.0000.00716.52
7.4.240.0000.00716.53
7.4.230.0070.00016.41
7.4.220.0100.01316.42
7.4.210.0120.00616.47
7.4.200.0000.00616.55
7.4.160.0200.00316.50
7.4.150.0110.00717.40
7.4.140.0090.01217.86
7.4.130.0140.00816.45
7.4.120.0090.00816.40
7.4.110.0180.00716.55
7.4.100.0070.01016.52
7.4.90.0130.01016.46
7.4.80.0070.01019.39
7.4.70.0060.00916.40
7.4.60.0030.01216.50
7.4.50.0030.01416.15
7.4.40.0110.00616.54
7.4.30.0120.00916.53
7.4.00.0030.01115.09
7.3.330.0040.00313.08
7.3.320.0030.00313.09
7.3.310.0030.00316.34
7.3.300.0000.00716.18
7.3.290.0050.00916.31
7.3.280.0070.01316.31
7.3.270.0060.01917.40
7.3.260.0090.00916.30
7.3.250.0070.01116.36
7.3.240.0060.01116.36
7.3.230.0120.00616.40
7.3.210.0030.01416.48
7.3.200.0040.01419.39
7.3.190.0140.00316.16
7.3.180.0100.01016.44
7.3.170.0030.01916.48
7.3.160.0080.00816.25
7.2.330.0120.00616.28
7.2.320.0120.00816.48
7.2.310.0090.00916.59
7.2.300.0070.01116.52
7.2.290.0100.00716.16
7.2.110.0200.00316.43
7.2.60.0100.00716.80
7.2.00.0070.00319.15
7.1.200.0030.00615.31
7.1.100.0080.01218.00
7.1.70.0000.00817.13
7.1.60.0070.01019.40
7.1.50.0040.00716.50
7.1.00.0000.08022.40
7.0.200.0000.00816.81
7.0.60.0200.07721.73
7.0.50.0070.06317.88
7.0.40.0170.07720.29
7.0.30.0230.04020.12
7.0.20.0230.07320.09
7.0.10.0100.06720.12
7.0.00.0000.06020.24
5.6.280.0000.06720.82
5.6.210.0100.07720.67
5.6.200.0030.05018.14
5.6.190.0100.03720.62
5.6.180.0230.08320.53
5.6.170.0330.07020.48
5.6.160.0070.06720.43
5.6.150.0100.07018.21
5.6.140.0000.06718.16
5.6.130.0030.08318.14
5.6.120.0030.05721.02
5.6.110.0170.07320.94
5.6.100.0100.08320.89
5.6.90.0070.08021.02
5.6.80.0170.07320.38
5.5.350.0230.06720.34
5.5.340.0000.04017.97
5.5.330.0030.06020.43
5.5.320.0300.04720.35
5.5.310.0300.07720.38
5.5.300.0130.03318.09
5.5.290.0100.07718.01
5.5.280.0170.07320.86
5.5.270.0030.09020.89
5.5.260.0170.08020.77
5.5.250.0030.04320.79
5.5.240.0130.07720.13

preferences:
44.4 ms | 401 KiB | 5 Q