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::__callStatic('A');

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.70.0090.00916.62
8.3.60.0150.00416.63
8.3.50.0140.00722.05
8.3.40.0120.00318.59
8.3.30.0040.01118.89
8.3.20.0070.00720.21
8.3.10.0040.00423.48
8.3.00.0040.00419.26
8.2.190.0110.00716.75
8.2.180.0140.00316.63
8.2.170.0070.00722.96
8.2.160.0140.00720.35
8.2.150.0090.00024.18
8.2.140.0080.00024.66
8.2.130.0050.00326.16
8.2.120.0030.00626.16
8.2.110.0100.00019.01
8.2.100.0120.00017.72
8.2.90.0040.00418.22
8.2.80.0090.00017.97
8.2.70.0000.00817.91
8.2.60.0040.00417.92
8.2.50.0050.00318.10
8.2.40.0050.00320.46
8.2.30.0080.00020.71
8.2.20.0040.00417.59
8.2.10.0000.00718.04
8.2.00.0000.00718.04
8.1.280.0090.00925.92
8.1.270.0060.00322.19
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0050.00522.39
8.1.230.0060.00620.96
8.1.220.0000.00817.74
8.1.210.0040.00418.84
8.1.200.0040.00417.36
8.1.190.0030.00617.10
8.1.180.0000.00818.10
8.1.170.0030.00518.50
8.1.160.0000.00821.81
8.1.150.0080.00018.67
8.1.140.0030.00519.49
8.1.130.0000.00717.53
8.1.120.0000.00717.23
8.1.110.0000.00717.32
8.1.100.0030.00517.38
8.1.90.0020.00517.31
8.1.80.0050.00417.27
8.1.70.0030.00317.30
8.1.60.0040.00417.37
8.1.50.0070.00417.38
8.1.40.0040.00417.46
8.1.30.0090.00017.48
8.1.20.0040.00417.52
8.1.10.0080.00017.44
8.1.00.0090.00317.42
8.0.300.0070.00019.91
8.0.290.0040.00416.63
8.0.280.0000.00718.30
8.0.270.0000.00717.10
8.0.260.0000.00617.18
8.0.250.0040.00416.81
8.0.240.0070.00016.84
8.0.230.0000.00816.83
8.0.220.0000.00816.91
8.0.210.0040.00416.88
8.0.200.0030.00316.84
8.0.190.0050.00516.95
8.0.180.0000.00816.93
8.0.170.0000.00716.80
8.0.160.0000.00816.88
8.0.150.0000.00716.84
8.0.140.0030.00516.77
8.0.130.0000.00613.34
8.0.120.0040.00416.87
8.0.110.0040.00416.86
8.0.100.0040.00416.79
8.0.90.0040.00416.92
8.0.80.0070.00716.92
8.0.70.0040.00416.71
8.0.60.0080.00016.83
8.0.50.0070.00016.84
8.0.30.0070.01017.05
8.0.20.0080.01017.40
8.0.10.0040.00416.97
8.0.00.0050.01316.71
7.4.330.0000.00515.08
7.4.320.0000.00816.48
7.4.300.0000.00616.53
7.4.290.0030.00316.41
7.4.280.0040.00416.33
7.4.270.0050.00316.43
7.4.260.0000.00816.37
7.4.250.0050.00316.40
7.4.240.0020.00516.37
7.4.230.0040.00416.64
7.4.220.0070.01116.55
7.4.210.0090.00616.47
7.4.200.0030.00316.61
7.4.160.0060.00916.44
7.4.150.0030.01417.40
7.4.140.0150.00817.86
7.4.130.0140.00816.53
7.4.120.0120.00516.36
7.4.110.0120.01216.35
7.4.100.0100.01316.45
7.4.90.0130.00316.43
7.4.80.0060.01819.39
7.4.70.0150.00316.59
7.4.60.0060.00916.45
7.4.50.0040.00016.20
7.4.40.0150.00416.63
7.4.30.0060.01516.21
7.4.00.0030.01314.79
7.3.330.0060.00013.31
7.3.320.0050.00013.16
7.3.310.0030.00316.28
7.3.300.0040.00416.29
7.3.290.0070.00816.27
7.3.280.0070.00716.27
7.3.270.0130.00317.40
7.3.260.0110.00616.31
7.3.240.0120.00516.27
7.3.230.0060.01216.40
7.3.210.0040.01216.30
7.3.200.0100.00616.45
7.3.190.0040.01116.35
7.3.180.0040.01116.32
7.3.170.0070.01416.29
7.3.160.0090.00616.42
7.3.120.0060.01114.96
7.3.110.0050.01114.83
7.3.100.0080.00614.92
7.3.90.0030.01314.73
7.3.80.0000.01214.72
7.3.70.0070.00614.76
7.3.60.0050.00614.80
7.3.50.0070.00614.74
7.3.40.0060.00314.75
7.3.30.0080.00514.85
7.3.20.0080.00216.70
7.3.10.0060.00816.58
7.3.00.0080.00516.64
7.2.330.0120.00616.38
7.2.320.0040.01416.64
7.2.310.0080.00816.66
7.2.300.0130.00716.47
7.2.290.0070.01016.55
7.2.250.0070.01015.02
7.2.240.0090.01014.69
7.2.230.0060.00815.03
7.2.220.0060.00715.03
7.2.210.0050.01014.79
7.2.200.0070.00714.82
7.2.190.0070.00914.80
7.2.180.0050.01114.77
7.2.170.0030.00714.86
7.2.60.0080.00416.71
7.2.00.0060.00619.06
7.1.330.0070.00915.70
7.1.320.0070.00415.47
7.1.310.0050.01015.64
7.1.300.0080.00615.33
7.1.290.0070.00715.71
7.1.280.0090.00315.52
7.1.270.0020.00915.64
7.1.260.0050.00615.52
7.1.200.0060.00315.73
7.1.100.0050.00318.02
7.1.70.0080.00016.89
7.1.60.0140.01119.48
7.1.50.0040.00716.91
7.1.00.0000.07722.44
7.0.200.0250.00414.48
7.0.60.0030.04019.96
7.0.50.0000.04717.83
7.0.40.0070.05320.23
7.0.30.0230.03720.21
7.0.20.0230.08320.30
7.0.10.0030.04720.07
7.0.00.0030.08320.12
5.6.280.0070.04020.82
5.6.210.0100.07720.60
5.6.200.0100.04018.14
5.6.190.0070.07320.57
5.6.180.0200.04020.61
5.6.170.0300.06720.54
5.6.160.0030.09020.43
5.6.150.0070.08018.18
5.6.140.0100.07718.18
5.6.130.0130.07718.14
5.6.120.0100.06021.00
5.6.110.0100.06321.12
5.6.100.0130.07320.94
5.6.90.0070.04320.96
5.6.80.0130.07720.43
5.5.350.3930.04020.36
5.5.340.0070.05317.99
5.5.330.0200.06020.29
5.5.320.0430.06320.32
5.5.310.0330.07020.32
5.5.300.0000.08717.98
5.5.290.0100.07017.98
5.5.280.0100.04320.88
5.5.270.0170.07720.80
5.5.260.0030.04020.77
5.5.250.0100.07320.59
5.5.240.0300.03320.27

preferences:
61.65 ms | 401 KiB | 5 Q