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.01318.56
8.3.50.0120.00621.98
8.3.40.0120.00918.84
8.3.30.0120.00618.84
8.3.20.0080.00020.16
8.3.10.0040.00423.52
8.3.00.0040.00419.38
8.2.180.0150.00618.66
8.2.170.0120.00922.96
8.2.160.0070.01020.39
8.2.150.0050.00324.18
8.2.140.0070.00024.66
8.2.130.0000.00726.16
8.2.120.0000.00826.16
8.2.110.0030.00720.36
8.2.100.0040.00817.79
8.2.90.0040.00418.16
8.2.80.0040.00417.97
8.2.70.0040.00417.63
8.2.60.0090.00317.91
8.2.50.0000.00818.07
8.2.40.0000.00819.40
8.2.30.0000.00720.61
8.2.20.0000.00817.56
8.2.10.0050.00318.14
8.2.00.0030.00618.12
8.1.280.0100.00725.92
8.1.270.0040.00422.05
8.1.260.0080.00026.35
8.1.250.0070.00028.09
8.1.240.0080.00022.19
8.1.230.0040.00820.98
8.1.220.0000.00817.74
8.1.210.0030.00518.77
8.1.200.0000.00817.36
8.1.190.0000.00917.35
8.1.180.0040.00418.10
8.1.170.0040.00418.58
8.1.160.0000.00722.01
8.1.150.0000.00718.88
8.1.140.0000.00819.43
8.1.130.0070.00017.68
8.1.120.0040.00417.36
8.1.110.0000.00717.30
8.1.100.0030.00317.41
8.1.90.0040.00417.29
8.1.80.0050.00317.28
8.1.70.0000.00717.25
8.1.60.0040.00417.51
8.1.50.0000.00917.17
8.1.40.0000.00817.53
8.1.30.0000.00817.56
8.1.20.0040.00417.68
8.1.10.0000.00717.64
8.1.00.0030.00717.51
8.0.300.0040.00420.04
8.0.290.0040.00416.63
8.0.280.0030.00618.39
8.0.270.0030.00317.11
8.0.260.0040.00417.25
8.0.250.0000.00716.92
8.0.240.0040.00416.94
8.0.230.0000.00616.97
8.0.220.0030.00316.77
8.0.210.0040.00416.84
8.0.200.0040.00417.02
8.0.190.0030.00616.92
8.0.180.0050.00316.82
8.0.170.0000.00717.00
8.0.160.0070.00016.95
8.0.150.0030.00316.83
8.0.140.0070.00016.83
8.0.130.0000.00713.35
8.0.120.0090.00016.73
8.0.110.0040.00416.88
8.0.100.0070.00016.87
8.0.90.0040.00416.80
8.0.80.0060.00916.91
8.0.70.0000.00716.94
8.0.60.0000.00716.85
8.0.50.0040.00416.93
8.0.30.0100.00916.95
8.0.20.0100.01017.40
8.0.10.0050.00317.01
8.0.00.0080.01116.83
7.4.330.0020.00215.08
7.4.320.0030.00316.37
7.4.300.0000.00616.55
7.4.290.0030.00316.61
7.4.280.0080.00016.51
7.4.270.0070.00016.52
7.4.260.0030.00316.59
7.4.250.0000.00816.46
7.4.240.0050.00216.55
7.4.230.0000.00716.32
7.4.220.0170.00316.67
7.4.210.0150.00016.67
7.4.200.0000.00716.32
7.4.160.0120.00316.49
7.4.150.0120.00617.40
7.4.140.0170.01717.86
7.4.130.0140.00616.57
7.4.120.0110.01216.54
7.4.110.0160.00916.68
7.4.100.0110.01116.52
7.4.90.0180.00316.43
7.4.80.0060.01219.39
7.4.70.0030.01316.46
7.4.60.0100.00716.57
7.4.50.0000.00516.62
7.4.40.0080.01216.54
7.4.30.0090.00716.59
7.4.00.0090.00815.03
7.3.330.0060.00013.32
7.3.320.0050.00013.17
7.3.310.0030.00316.36
7.3.300.0000.00716.29
7.3.290.0080.00916.27
7.3.280.0050.01116.31
7.3.270.0070.01117.40
7.3.260.0070.01016.54
7.3.250.0090.01116.46
7.3.240.0090.01016.24
7.3.230.0070.01016.49
7.3.210.0130.00416.32
7.3.200.0130.00316.61
7.3.190.0120.00616.42
7.3.180.0090.00716.57
7.3.170.0100.01016.48
7.3.160.0080.00816.33
7.3.120.0050.01214.89
7.3.110.0090.00914.67
7.3.100.0060.01014.88
7.3.90.0090.00614.90
7.3.80.0070.00914.83
7.3.70.0070.00814.71
7.3.60.0070.00814.78
7.3.50.0060.00914.80
7.3.40.0070.00314.64
7.3.30.0050.00614.69
7.3.20.0090.00616.52
7.3.10.0090.00316.60
7.3.00.0030.01116.33
7.2.330.0110.01116.63
7.2.320.0060.01216.49
7.2.310.0120.00816.44
7.2.300.0030.01516.51
7.2.290.0100.00616.38
7.2.250.0080.01014.98
7.2.240.0020.01214.69
7.2.230.0060.01214.93
7.2.220.0030.00914.96
7.2.210.0100.00414.92
7.2.200.0110.00414.92
7.2.190.0060.00914.72
7.2.180.0070.00814.90
7.2.170.0020.01115.01
7.2.60.0040.00916.57
7.2.00.0060.00919.02
7.1.330.0030.01015.52
7.1.320.0020.00915.67
7.1.310.0060.00915.58
7.1.300.0050.01015.57
7.1.290.0080.00615.51
7.1.280.0090.00215.54
7.1.270.0040.00615.57
7.1.260.0050.00915.65
7.1.200.0100.00015.61
7.1.100.0000.00917.68
7.1.70.0070.00016.81
7.1.60.0060.01519.48
7.1.50.0070.01016.77
7.1.00.0070.07022.30
7.0.200.0070.00414.71
7.0.60.0170.06319.96
7.0.50.0130.03017.85
7.0.40.0100.03720.09
7.0.30.0200.05320.04
7.0.20.0300.08320.20
7.0.10.0100.08320.30
7.0.00.0030.04320.14
5.6.280.0000.07721.13
5.6.210.0030.09020.45
5.6.200.0070.06318.13
5.6.190.0030.05720.48
5.6.180.0130.04720.39
5.6.170.0300.06320.47
5.6.160.0030.09020.61
5.6.150.0070.08718.19
5.6.140.0130.04718.18
5.6.130.0070.04018.19
5.6.120.0000.05021.05
5.6.110.0270.05721.09
5.6.100.0030.04020.98
5.6.90.0370.06320.98
5.6.80.0130.04020.52
5.5.350.0170.07720.42
5.5.340.0030.07317.95
5.5.330.0100.07320.36
5.5.320.0500.04720.34
5.5.310.0300.07320.30
5.5.300.0100.04717.98
5.5.290.0130.06718.03
5.5.280.0070.05320.94
5.5.270.0100.06320.77
5.5.260.0070.07320.77
5.5.250.0030.09020.55
5.5.240.0270.07720.26

preferences:
41.66 ms | 401 KiB | 5 Q