3v4l.org

run code in 300+ PHP versions simultaneously
<?php abstract class a { public function __call ($name,$arguments) { if ($name == 'getb') return new b; throw new Exception('error'); } abstract function p(); } class b extends a { public function p () { echo 123; } } $a = new a; $b = $a->getb(); $b->p();

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.0040.01118.97
8.3.30.0030.01018.67
8.3.20.0080.00020.29
8.3.10.0050.00323.61
8.3.00.0000.00819.79
8.2.170.0120.00322.96
8.2.160.0100.00319.24
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0000.00919.27
8.2.120.0050.00326.35
8.2.110.0100.00020.53
8.2.100.0120.00017.90
8.2.90.0030.00619.16
8.2.80.0080.00017.97
8.2.70.0030.00617.75
8.2.60.0030.00817.43
8.2.50.0030.00718.07
8.2.40.0000.00822.15
8.2.30.0000.00720.68
8.2.20.0050.00317.62
8.2.10.0040.00418.07
8.2.00.0030.00517.88
8.1.270.0050.00320.29
8.1.260.0040.00428.09
8.1.250.0040.00428.09
8.1.240.0060.00324.02
8.1.230.0070.00417.70
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0000.00917.23
8.1.190.0000.00817.11
8.1.180.0000.00918.10
8.1.170.0000.00718.65
8.1.160.0040.00420.56
8.1.150.0040.00418.76
8.1.140.0040.00419.46
8.1.130.0030.00317.47
8.1.120.0000.00717.35
8.1.110.0000.00717.36
8.1.100.0000.00717.36
8.1.90.0030.00317.24
8.1.80.0000.00817.21
8.1.70.0030.00317.15
8.1.60.0050.00217.48
8.1.50.0080.00017.39
8.1.40.0000.01117.34
8.1.30.0000.00817.60
8.1.20.0000.00817.60
8.1.10.0040.00417.52
8.1.00.0060.00317.34
8.0.300.0000.00818.77
8.0.290.0000.00816.75
8.0.280.0050.00218.39
8.0.270.0000.00817.26
8.0.260.0060.00017.11
8.0.250.0060.00016.98
8.0.240.0040.00416.98
8.0.230.0000.00716.87
8.0.220.0050.00316.90
8.0.210.0030.00316.93
8.0.200.0070.00016.96
8.0.190.0030.00617.00
8.0.180.0000.00716.94
8.0.170.0080.00016.94
8.0.160.0040.00416.84
8.0.150.0030.00316.85
8.0.140.0070.00016.75
8.0.130.0070.00013.34
8.0.120.0030.00516.71
8.0.110.0000.00716.88
8.0.100.0000.00716.94
8.0.90.0070.00016.77
8.0.80.0090.00916.83
8.0.70.0020.00516.93
8.0.60.0000.00716.73
8.0.50.0000.00716.92
8.0.30.0140.00717.00
8.0.20.0040.01417.40
8.0.10.0040.00417.01
8.0.00.0100.00616.58
7.4.330.0030.00316.67
7.4.320.0030.00316.29
7.4.300.0070.00016.57
7.4.290.0030.00316.48
7.4.280.0000.00816.44
7.4.270.0040.00416.45
7.4.260.0070.00016.57
7.4.250.0000.00716.31
7.4.240.0040.00316.38
7.4.230.0040.00416.53
7.4.220.0140.00316.48
7.4.210.0180.00316.50
7.4.200.0000.00716.64
7.4.160.0120.00416.58
7.4.150.0130.00717.40
7.4.140.0100.01317.86
7.4.130.0100.00716.45
7.4.120.0090.00916.50
7.4.110.0090.00916.59
7.4.100.0130.00316.55
7.4.90.0160.00316.52
7.4.80.0070.01419.39
7.4.70.0100.01016.39
7.4.60.0100.00616.34
7.4.50.0110.00416.40
7.4.40.0000.01816.37
7.4.30.0100.01016.49
7.4.00.0070.00714.98
7.3.330.0030.00313.32
7.3.320.0050.00013.31
7.3.310.0070.00016.19
7.3.300.0070.00016.18
7.3.290.0070.00916.23
7.3.280.0080.00916.29
7.3.270.0070.01017.40
7.3.260.0060.01216.34
7.3.250.0120.00716.37
7.3.240.0100.00616.22
7.3.230.0030.01416.39
7.3.210.0070.01016.57
7.3.200.0060.01016.36
7.3.190.0070.01316.34
7.3.180.0100.00716.19
7.3.170.0100.00716.44
7.3.160.0030.01316.40
7.3.120.0100.00714.83
7.3.110.0040.01114.72
7.3.100.0070.00714.82
7.3.90.0040.00714.71
7.3.80.0100.00714.87
7.3.70.0050.00514.65
7.3.60.0140.00014.55
7.3.50.0060.00614.80
7.3.40.0100.00714.71
7.3.30.0090.00614.69
7.3.20.0040.01016.61
7.3.10.0060.00916.59
7.3.00.0060.00916.46
7.2.330.0030.01416.47
7.2.320.0120.00616.30
7.2.310.0150.00416.34
7.2.300.0120.00716.29
7.2.290.0130.00416.35
7.2.240.0140.00014.89
7.2.230.0030.01015.07
7.2.220.0090.00614.95
7.2.210.0000.01815.10
7.2.200.0000.01614.78
7.2.190.0070.01014.91
7.2.180.0060.01014.84
7.2.170.0150.00014.74
7.2.160.0120.00314.78
7.2.150.0070.01116.70
7.2.140.0030.00816.69
7.2.130.0060.00616.86
7.2.120.0070.01016.60
7.2.110.0090.00916.77
7.2.100.0140.00316.52
7.2.90.0000.01016.55
7.2.80.0030.01216.87
7.2.70.0040.01116.89
7.2.60.0050.00816.85
7.2.50.0070.00716.83
7.2.40.0090.00616.84
7.2.30.0060.00916.53
7.2.20.0030.01016.77
7.2.10.0030.01016.38
7.2.00.0060.01217.86
7.1.330.0060.00915.56
7.1.320.0000.01615.36
7.1.310.0070.00715.58
7.1.300.0090.00615.36
7.1.290.0070.00715.29
7.1.280.0030.01215.45
7.1.270.0060.01015.62
7.1.260.0100.00615.37
7.1.250.0060.01015.72
7.1.200.0000.01415.58
7.1.100.0100.00717.76
7.1.70.0100.00316.74
7.1.60.0030.02219.44
7.1.50.0060.01616.98
7.1.00.0000.08022.48
7.0.200.0030.00616.42
7.0.60.0130.05719.83
7.0.50.0070.06717.97
7.0.40.0070.06020.23
7.0.30.0300.04720.09
7.0.20.0430.06720.05
7.0.10.0030.04320.24
7.0.00.0070.04020.33
5.6.280.0030.03320.82
5.6.210.0030.07320.67
5.6.200.0170.06318.24
5.6.190.0000.06020.63
5.6.180.0130.06320.61
5.6.170.0270.05020.48
5.6.160.0130.07720.44
5.6.150.0030.04718.25
5.6.140.0100.03718.18
5.6.130.0100.08018.19
5.6.120.0070.04321.06
5.6.110.0100.07020.98
5.6.100.0070.08020.98
5.6.90.0100.08020.98
5.6.80.0100.04720.54
5.5.350.0030.03720.45
5.5.340.0030.04018.07
5.5.330.0070.08320.25
5.5.320.0200.04020.35
5.5.310.0230.05720.32
5.5.300.0030.07318.09
5.5.290.0030.04317.95
5.5.280.0100.04020.78
5.5.270.0100.08020.88
5.5.260.0070.07320.87
5.5.250.0000.08720.66
5.5.240.3970.04320.28

preferences:
47.2 ms | 400 KiB | 5 Q