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(); } } $instance = A::I(); $A = call_user_func_array(array($instance, 'A'), array()); print $A[1];

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.0150.00316.63
8.3.50.0120.00617.92
8.3.40.0070.00718.82
8.3.30.0070.00718.84
8.3.20.0110.00720.21
8.3.10.0070.00723.49
8.3.00.0130.00619.26
8.2.180.0140.00718.38
8.2.170.0190.00022.96
8.2.160.0130.00320.35
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0000.00726.16
8.2.120.0050.00326.16
8.2.110.0060.00322.08
8.2.100.0090.00317.93
8.2.90.0040.00419.05
8.2.80.0050.00317.97
8.2.70.0000.00817.63
8.2.60.0080.00017.93
8.2.50.0040.00418.07
8.2.40.0070.00019.16
8.2.30.0000.00720.66
8.2.20.0040.00417.56
8.2.10.0000.00718.12
8.2.00.0070.00017.98
8.1.280.0130.00725.92
8.1.270.0040.00422.19
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0030.00720.63
8.1.230.0060.00617.66
8.1.220.0030.00517.76
8.1.210.0060.00318.77
8.1.200.0030.00617.35
8.1.190.0000.00817.10
8.1.180.0040.00418.10
8.1.170.0000.00818.46
8.1.160.0040.00421.97
8.1.150.0050.00318.84
8.1.140.0030.00619.52
8.1.130.0030.00317.66
8.1.120.0000.00717.29
8.1.110.0050.00517.45
8.1.100.0080.00017.39
8.1.90.0000.00717.26
8.1.80.0040.00417.25
8.1.70.0000.00717.41
8.1.60.0040.00417.54
8.1.50.0040.00417.36
8.1.40.0040.00417.42
8.1.30.0030.00517.42
8.1.20.0060.00317.49
8.1.10.0040.00417.45
8.1.00.0070.00417.31
8.0.300.0000.00818.77
8.0.290.0020.00516.61
8.0.280.0030.00318.34
8.0.270.0040.00417.19
8.0.260.0000.00617.20
8.0.250.0030.00316.96
8.0.240.0030.00316.89
8.0.230.0030.00316.94
8.0.220.0000.00716.89
8.0.210.0000.00716.93
8.0.200.0060.00016.84
8.0.190.0090.00316.97
8.0.180.0040.00416.92
8.0.170.0020.00516.81
8.0.160.0000.00716.97
8.0.150.0060.00316.97
8.0.140.0050.00216.85
8.0.130.0000.00613.40
8.0.120.0000.00816.94
8.0.110.0000.00716.96
8.0.100.0050.00216.93
8.0.90.0070.00017.07
8.0.80.0100.01016.91
8.0.70.0000.00716.90
8.0.60.0070.00016.91
8.0.50.0040.00416.76
8.0.30.0110.00717.09
8.0.20.0110.00717.40
8.0.10.0070.00016.88
8.0.00.0130.00616.87
7.4.330.0050.00015.08
7.4.320.0000.00616.46
7.4.300.0000.00616.42
7.4.290.0000.00716.55
7.4.280.0030.00316.38
7.4.270.0000.00816.59
7.4.260.0040.00416.43
7.4.250.0050.00216.42
7.4.240.0020.00516.55
7.4.230.0000.00816.55
7.4.220.0110.00716.46
7.4.210.0110.00416.48
7.4.200.0000.00716.63
7.4.160.0090.00616.52
7.4.150.0130.00417.40
7.4.140.0090.00917.86
7.4.130.0060.01216.47
7.4.120.0070.01016.55
7.4.110.0070.01016.32
7.4.100.0140.00316.48
7.4.90.0120.01216.43
7.4.80.0090.00919.39
7.4.70.0060.01616.46
7.4.60.0060.01016.61
7.4.50.0000.00716.41
7.4.40.0130.00916.54
7.4.30.0120.00316.52
7.4.10.0070.01114.74
7.4.00.0080.00814.98
7.3.330.0030.00313.23
7.3.320.0050.00013.36
7.3.310.0030.00316.39
7.3.300.0030.00316.30
7.3.290.0070.01016.34
7.3.280.0070.01216.33
7.3.270.0060.01217.40
7.3.260.0070.01416.41
7.3.250.0100.00916.44
7.3.240.0080.01016.39
7.3.230.0100.00716.54
7.3.210.0070.01016.48
7.3.200.0070.01016.54
7.3.190.0060.01116.60
7.3.180.0130.00316.47
7.3.170.0130.00316.56
7.3.160.0100.00616.49
7.3.130.0030.01314.81
7.3.120.0060.01214.84
7.3.110.0090.00914.75
7.3.100.0060.01215.11
7.3.90.0130.00015.05
7.3.80.0070.00714.56
7.3.70.0030.00814.72
7.3.60.0060.00614.66
7.3.50.0110.00314.85
7.3.40.0100.00314.83
7.3.30.0080.00414.73
7.3.20.0050.00516.51
7.3.10.0060.00916.62
7.3.00.0060.00616.61
7.2.330.0130.00916.39
7.2.320.0060.01216.53
7.2.310.0070.01116.59
7.2.300.0060.01116.35
7.2.290.0090.00916.64
7.2.260.0040.01415.07
7.2.250.0070.01114.94
7.2.240.0060.01114.76
7.2.230.0090.00314.60
7.2.220.0110.00414.87
7.2.210.0070.00414.95
7.2.200.0100.00315.11
7.2.190.0080.00814.94
7.2.180.0070.00714.75
7.2.170.0000.01415.02
7.2.160.0060.00614.73
7.2.150.0110.00416.90
7.2.140.0000.01516.89
7.2.130.0000.01316.87
7.2.120.0000.01216.64
7.2.110.0040.01116.92
7.2.100.0060.01016.92
7.2.90.0070.01116.86
7.2.80.0030.01316.75
7.2.70.0060.00617.00
7.2.60.0050.00816.90
7.2.50.0040.01116.79
7.2.40.0060.00916.81
7.2.30.0000.01116.93
7.2.20.0070.00416.62
7.2.10.0060.00916.76
7.2.00.0050.00917.84
7.1.330.0070.00715.80
7.1.320.0030.00615.74
7.1.310.0060.00615.65
7.1.300.0070.01015.64
7.1.290.0130.00015.39
7.1.280.0000.01315.76
7.1.270.0040.00815.70
7.1.260.0040.01115.72
7.1.250.0070.00715.75
7.1.240.0060.01015.68
7.1.230.0100.00615.62
7.1.220.0060.00915.54
7.1.210.0030.01015.80
7.1.200.0090.00615.71
7.1.190.0050.00515.72
7.1.180.0000.01415.56
7.1.170.0040.00815.78
7.1.160.0030.01315.43
7.1.150.0110.00415.80
7.1.140.0060.00615.34
7.1.130.0070.00715.79
7.1.120.0090.00315.76
7.1.110.0040.00715.81
7.1.100.0050.00916.74
7.1.90.0040.00415.73
7.1.80.0120.00015.40
7.1.70.0000.01116.10
7.1.60.0110.00717.50
7.1.50.0050.01215.94
7.1.40.0000.00915.64
7.1.30.0000.00915.72
7.1.20.0070.01015.73
7.1.10.0040.00815.57
7.1.00.0050.04118.87
7.0.330.0030.00915.20
7.0.320.0040.01115.25
7.0.310.0020.01015.41
7.0.300.0070.00715.07
7.0.290.0070.00715.27
7.0.280.0030.01015.13
7.0.270.0080.00415.38
7.0.260.0100.00315.45
7.0.250.0040.01215.53
7.0.240.0040.01115.45
7.0.230.0070.00715.46
7.0.220.0040.01115.30
7.0.210.0040.01115.49
7.0.200.0190.00714.80
7.0.190.0070.00715.52
7.0.180.0030.01015.39
7.0.170.0060.00615.15
7.0.160.0070.00715.30
7.0.150.0000.00915.31
7.0.140.0000.01215.40
7.0.130.0060.00915.11
7.0.120.0000.01215.21
7.0.110.0090.00615.44
7.0.100.0000.00915.29
7.0.90.0110.00315.46
7.0.80.0110.00415.13
7.0.70.0070.01015.26
7.0.60.0070.04217.63
7.0.50.0060.02716.56
7.0.40.0030.03916.72
7.0.30.0100.03316.81
7.0.20.0170.03416.83
7.0.10.0070.04216.84
7.0.00.0070.04516.70
5.6.400.0000.01813.99
5.6.390.0000.01014.34
5.6.380.0070.00714.52
5.6.370.0030.01014.39
5.6.360.0030.01214.57
5.6.350.0030.00614.54
5.6.340.0080.00614.22
5.6.330.0070.00314.09
5.6.320.0000.01414.60
5.6.310.0060.00913.94
5.6.300.0030.01014.19
5.6.290.0060.00614.36
5.6.280.0050.03517.58
5.6.270.0000.00914.27
5.6.260.0000.01114.37
5.6.250.0000.01114.31
5.6.240.0070.00714.28
5.6.230.0030.00514.02
5.6.220.0030.01014.14
5.6.210.0090.04617.30
5.6.200.0050.04616.21
5.6.190.0020.03117.48
5.6.180.0180.03017.43
5.6.170.0160.04117.46
5.6.160.0000.02817.23
5.6.150.0020.03616.19
5.6.140.0070.02716.12
5.6.130.0060.03116.26
5.6.120.0110.04017.54
5.6.110.0070.02417.74
5.6.100.0080.04417.63
5.6.90.0070.03817.58
5.6.80.0000.04917.20
5.6.70.0030.00614.42
5.6.60.0080.00413.97
5.6.50.0070.00714.03
5.6.40.0060.00613.92
5.6.30.0040.00814.02
5.6.20.0090.00314.15
5.6.10.0030.00613.95
5.6.00.0000.00814.19
5.5.380.0000.00914.25
5.5.370.0000.01014.27
5.5.360.0070.00714.15
5.5.350.2110.02517.26
5.5.340.0030.04416.25
5.5.330.0110.02017.42
5.5.320.0080.04517.33
5.5.310.0170.03417.40
5.5.300.0060.04116.06
5.5.290.0060.04416.05
5.5.280.0050.02317.53
5.5.270.0090.02017.51
5.5.260.0050.03217.40
5.5.250.0070.02417.38
5.5.240.0160.03517.27
5.5.230.0060.00614.14
5.5.220.0070.00714.20
5.5.210.0030.00614.13
5.5.200.0030.01314.11
5.5.190.0000.01313.84
5.5.180.0060.00313.97
5.5.170.0090.00614.23
5.5.160.0070.00714.15
5.5.150.0030.01014.35
5.5.140.0080.00414.31
5.5.130.0030.00614.05
5.5.120.0040.00414.34
5.5.110.0060.00914.09
5.5.100.0030.00614.04
5.5.90.0100.00314.04
5.5.80.0130.00314.05
5.5.70.0000.01714.13
5.5.60.0070.00714.20
5.5.50.0110.00413.96
5.5.40.0100.00013.66
5.5.30.0060.00914.06
5.5.20.0040.00414.21
5.5.10.0070.00713.90
5.5.00.0090.00313.58

preferences:
52.72 ms | 401 KiB | 5 Q