3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { private function __construct() { throw new Exception('thrown'); } public function A() { return array('a', 'b', 'c'); } public static function I() { return new A(); } } $A = 'A'; call_user_method(array($A, 'A'), null);

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.50
8.3.50.0110.00721.99
8.3.40.0170.00318.84
8.3.30.0190.00418.67
8.3.20.0000.00819.91
8.3.10.0060.00323.48
8.3.00.0060.00319.26
8.2.180.0110.01118.41
8.2.170.0140.00722.96
8.2.160.0070.01020.52
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0000.00726.16
8.2.120.0070.00026.16
8.2.110.0030.01319.33
8.2.100.0040.00817.91
8.2.90.0000.00817.75
8.2.80.0040.00417.97
8.2.70.0040.00417.63
8.2.60.0030.00517.25
8.2.50.0000.00917.55
8.2.40.0000.00819.48
8.2.30.0020.00517.76
8.2.20.0000.00917.56
8.2.10.0040.00418.06
8.2.00.0050.00217.93
8.1.280.0120.00625.92
8.1.270.0040.00422.02
8.1.260.0040.00426.35
8.1.250.0050.00228.09
8.1.240.0030.00522.05
8.1.230.0070.00420.79
8.1.220.0050.00317.79
8.1.210.0000.00818.77
8.1.200.0040.00417.25
8.1.190.0070.00317.35
8.1.180.0030.00518.10
8.1.170.0000.00818.99
8.1.160.0020.00518.82
8.1.150.0050.00318.82
8.1.140.0050.00319.57
8.1.130.0070.00017.64
8.1.120.0000.00717.30
8.1.110.0000.00917.28
8.1.100.0070.00017.29
8.1.90.0030.00517.34
8.1.80.0060.00317.38
8.1.70.0000.00717.38
8.1.60.0070.00017.36
8.1.50.0070.00317.49
8.1.40.0040.00417.47
8.1.30.0050.00317.48
8.1.20.0030.00517.66
8.1.10.0040.00417.57
8.1.00.0000.01017.45
8.0.300.0060.00319.93
8.0.290.0040.00416.75
8.0.280.0000.00717.89
8.0.270.0040.00417.89
8.0.260.0030.00317.11
8.0.250.0040.00416.96
8.0.240.0030.00317.00
8.0.230.0040.00417.00
8.0.220.0000.00716.89
8.0.210.0030.00616.88
8.0.200.0000.00616.98
8.0.190.0060.00316.98
8.0.180.0000.00716.81
8.0.170.0070.00016.82
8.0.160.0030.00516.81
8.0.150.0070.00016.82
8.0.140.0000.00716.79
8.0.130.0030.00313.24
8.0.120.0030.00616.82
8.0.110.0000.00716.92
8.0.100.0040.00416.71
8.0.90.0000.00716.96
8.0.80.0150.00616.90
8.0.70.0050.00216.70
8.0.60.0020.00516.96
8.0.50.0040.00416.93
8.0.30.0080.01117.03
8.0.20.0090.00917.40
8.0.10.0040.00416.97
8.0.00.0090.01016.79
7.4.330.0020.00215.08
7.4.320.0030.00316.36
7.4.300.0040.00416.62
7.4.290.0030.00316.52
7.4.280.0050.00516.62
7.4.270.0070.00016.62
7.4.260.0070.00016.62
7.4.250.0000.00716.57
7.4.240.0040.00316.62
7.4.230.0030.00316.59
7.4.220.0070.01016.50
7.4.210.0040.01116.71
7.4.200.0040.00416.66
7.4.160.0070.01016.59
7.4.150.0090.00917.40
7.4.140.0110.01417.86
7.4.130.0160.00616.64
7.4.120.0070.01016.54
7.4.110.0070.01016.60
7.4.100.0090.01216.46
7.4.90.0130.01016.49
7.4.80.0080.00919.39
7.4.70.0110.00716.51
7.4.60.0100.00516.54
7.4.50.0060.00016.37
7.4.40.0060.01216.32
7.4.30.0110.00516.36
7.4.00.0040.01115.13
7.3.330.0000.00713.32
7.3.320.0050.00013.31
7.3.310.0040.00416.20
7.3.300.0000.00716.31
7.3.290.0080.00916.27
7.3.280.0070.01016.32
7.3.270.0030.01317.40
7.3.260.0150.00616.28
7.3.240.0060.01016.38
7.3.230.0090.01516.54
7.3.210.0130.00516.46
7.3.200.0030.01216.35
7.3.190.0100.00616.32
7.3.180.0150.00016.52
7.3.170.0070.01416.27
7.3.160.0080.00816.23
7.2.330.0120.00916.44
7.2.320.0070.01016.31
7.2.310.0150.00416.29
7.2.300.0090.01216.46
7.2.290.0090.00916.57
7.2.60.0090.01416.48
7.1.200.0060.00615.37
7.1.70.0030.00316.93
7.1.60.0070.01719.48
7.1.50.0110.00416.89
7.1.00.0000.08022.47
7.0.200.0120.00414.82
7.0.60.0030.04019.96
7.0.50.0070.03717.86
7.0.40.0070.04020.24
7.0.30.0230.04320.09
7.0.20.0170.09020.07
7.0.10.0100.08720.08
7.0.00.0000.04720.10
5.6.280.0030.07721.15
5.6.210.0100.06020.57
5.6.200.0130.07318.20
5.6.190.0170.04020.46
5.6.180.0200.04020.52
5.6.170.0230.07320.47
5.6.160.0000.08720.54
5.6.150.0130.06318.27
5.6.140.0070.06718.19
5.6.130.0200.06718.23
5.6.120.0030.05720.98
5.6.110.0030.04721.14
5.6.100.0030.07320.99
5.6.90.0070.04020.98
5.6.80.0070.08020.52
5.5.350.4200.04720.39
5.5.340.0070.03718.09
5.5.330.0000.04720.41
5.5.320.0570.07320.31
5.5.310.0170.04720.27
5.5.300.0070.04718.04
5.5.290.0170.07717.98
5.5.280.0030.08720.78
5.5.270.0030.09020.84
5.5.260.0030.05320.85
5.5.250.0030.04020.78
5.5.240.0230.05020.20

preferences:
51.88 ms | 401 KiB | 5 Q