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(); } } var_dump(A::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.0000.01516.63
8.3.50.0030.01018.18
8.3.40.0090.01218.91
8.3.30.0100.00718.71
8.3.20.0050.00320.23
8.3.10.0080.00023.64
8.3.00.0060.00319.50
8.2.180.0150.00318.41
8.2.170.0130.00322.96
8.2.160.0070.00720.39
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0000.00819.66
8.2.110.0070.00320.93
8.2.100.0080.00417.90
8.2.90.0000.00719.14
8.2.80.0060.00317.97
8.2.70.0080.00017.63
8.2.60.0050.00317.80
8.2.50.0000.00818.07
8.2.40.0040.00419.34
8.2.30.0050.00320.55
8.2.20.0040.00417.59
8.2.10.0080.00018.00
8.2.00.0000.00717.91
8.1.280.0080.01225.92
8.1.270.0030.00524.02
8.1.260.0040.00426.35
8.1.250.0060.00328.09
8.1.240.0060.00322.66
8.1.230.0040.00817.54
8.1.220.0040.00417.74
8.1.210.0030.00518.77
8.1.200.0000.00917.23
8.1.190.0080.00017.00
8.1.180.0050.00318.10
8.1.170.0040.00418.54
8.1.160.0050.00221.96
8.1.150.0000.00718.77
8.1.140.0030.00619.50
8.1.130.0040.00417.58
8.1.120.0030.00317.38
8.1.110.0060.00317.33
8.1.100.0040.00417.29
8.1.90.0040.00417.41
8.1.80.0030.00317.29
8.1.70.0030.00317.38
8.1.60.0000.00817.52
8.1.50.0040.00417.42
8.1.40.0000.00817.50
8.1.30.0030.00617.52
8.1.20.0000.00717.54
8.1.10.0000.00817.52
8.1.00.0040.00417.37
8.0.300.0040.00418.77
8.0.290.0070.00016.75
8.0.280.0000.00718.40
8.0.270.0080.00017.20
8.0.260.0000.00617.20
8.0.250.0060.00316.85
8.0.240.0030.00316.84
8.0.230.0000.00716.88
8.0.220.0070.00016.94
8.0.210.0030.00316.81
8.0.200.0030.00316.83
8.0.190.0040.00416.98
8.0.180.0040.00416.83
8.0.170.0040.00416.81
8.0.160.0040.00416.95
8.0.150.0000.00716.82
8.0.140.0000.00716.87
8.0.130.0030.00313.34
8.0.120.0060.00316.85
8.0.110.0000.00716.84
8.0.100.0040.00416.72
8.0.90.0070.00016.91
8.0.80.0070.01416.96
8.0.70.0000.00816.77
8.0.60.0070.00016.94
8.0.50.0060.00316.75
8.0.30.0080.01016.95
8.0.20.0110.01017.40
8.0.10.0040.00416.84
8.0.00.0080.01116.80
7.4.330.0020.00215.08
7.4.320.0000.00616.39
7.4.300.0000.00616.63
7.4.290.0000.00716.47
7.4.280.0040.00416.58
7.4.270.0000.00716.49
7.4.260.0070.00016.33
7.4.250.0000.00816.36
7.4.240.0060.00116.50
7.4.230.0060.00016.38
7.4.220.0080.01216.52
7.4.210.0090.00916.51
7.4.200.0050.00216.39
7.4.160.0120.00316.50
7.4.150.0100.00717.40
7.4.140.0200.02017.86
7.4.130.0090.00816.60
7.4.120.0080.00916.41
7.4.110.0070.01116.42
7.4.100.0110.01216.74
7.4.90.0030.01316.38
7.4.80.0100.01019.39
7.4.70.0040.01616.47
7.4.60.0070.01016.43
7.4.50.0000.00516.56
7.4.40.0110.01116.39
7.4.30.0110.01116.38
7.4.00.0070.01014.76
7.3.330.0030.00313.38
7.3.320.0060.00013.29
7.3.310.0030.00316.27
7.3.300.0030.00316.24
7.3.290.0100.00516.37
7.3.280.0110.00816.37
7.3.270.0070.01717.40
7.3.260.0060.01016.52
7.3.250.0080.01016.39
7.3.240.0060.01316.41
7.3.230.0110.00716.39
7.3.210.0060.01016.30
7.3.200.0070.01016.24
7.3.190.0130.00316.61
7.3.180.0080.01416.34
7.3.170.0080.00816.35
7.3.160.0100.00716.52
7.3.00.0050.00816.66
7.2.330.0110.00616.50
7.2.320.0070.01416.52
7.2.310.0000.01616.66
7.2.300.0060.01116.18
7.2.290.0030.01516.13
7.2.130.0060.00616.89
7.2.120.0030.00716.89
7.2.110.0000.00916.71
7.2.100.0060.00916.78
7.2.90.0040.00816.71
7.2.80.0070.01116.72
7.2.70.0060.00316.69
7.2.60.0120.00216.73
7.2.50.0000.01016.65
7.2.40.0130.00016.86
7.2.30.0060.00916.84
7.2.20.0040.00816.80
7.2.10.0060.00916.80
7.2.00.0030.01017.94
7.1.250.0040.00815.68
7.1.240.0070.00315.48
7.1.230.0030.01015.49
7.1.220.0030.00615.62
7.1.210.0040.01115.44
7.1.200.0050.00915.62
7.1.190.0030.01015.53
7.1.180.0070.01015.40
7.1.170.0070.00715.38
7.1.160.0090.00315.39
7.1.150.0030.00715.53
7.1.140.0040.00815.50
7.1.130.0070.00415.39
7.1.120.0070.01015.61
7.1.110.0070.00715.36
7.1.100.0050.00916.67
7.1.90.0060.00915.71
7.1.80.0030.00615.41
7.1.70.0080.00116.24
7.1.60.0030.00917.52
7.1.50.0050.00515.96
7.1.40.0070.00715.54
7.1.30.0040.00815.55
7.1.20.0030.01015.68
7.1.10.0030.00715.35
7.1.00.0100.03318.96
7.0.330.0040.01115.19
7.0.320.0040.00814.88
7.0.310.0050.00315.01
7.0.300.0030.01015.20
7.0.290.0110.00414.99
7.0.280.0030.00915.14
7.0.270.0040.01115.44
7.0.260.0030.01015.35
7.0.250.0030.00615.06
7.0.240.0070.00415.16
7.0.230.0090.00315.32
7.0.220.0030.00715.02
7.0.210.0100.00315.31
7.0.200.0290.00914.69
7.0.190.0090.00315.05
7.0.180.0030.01315.21
7.0.170.0030.00514.99
7.0.160.0040.00415.11
7.0.150.0000.01115.24
7.0.140.0030.00815.02
7.0.130.0080.00315.25
7.0.120.0090.00015.31
7.0.110.0000.01115.15
7.0.100.0040.00415.33
7.0.90.0100.00315.29
7.0.80.0030.00615.38
7.0.70.0080.00015.34
7.0.60.0030.02317.47
7.0.50.0070.02316.68
7.0.40.0080.02016.81
7.0.30.0180.03016.54
7.0.20.0180.04616.70
7.0.10.0080.03816.71
7.0.00.0030.02716.82
5.6.380.0030.01014.23
5.6.370.0030.00914.33
5.6.360.0030.00914.13
5.6.350.0040.00714.04
5.6.340.0070.00714.18
5.6.330.0060.00614.32
5.6.320.0080.00614.30
5.6.310.0060.00314.36
5.6.300.0070.00714.22
5.6.290.0080.00313.77
5.6.280.0040.01817.65
5.6.270.0000.01513.98
5.6.260.0060.00614.04
5.6.250.0040.00913.98
5.6.240.0120.00314.12
5.6.230.0040.00713.86
5.6.220.0040.00814.05
5.6.210.0050.04017.33
5.6.200.0080.04316.22
5.6.190.0070.04517.38
5.6.180.0200.03317.40
5.6.170.0150.04517.40
5.6.160.0050.04517.49
5.6.150.0050.02716.10
5.6.140.0060.04016.16
5.6.130.0070.03116.04
5.6.120.0150.03517.60
5.6.110.0060.02217.62
5.6.100.0050.02517.56
5.6.90.0040.02417.58
5.6.80.0080.04217.11
5.6.70.0030.01314.16
5.6.60.0000.01413.85
5.6.50.0070.00714.15
5.6.40.0040.00814.01
5.6.30.0120.00314.07
5.6.20.0100.00013.98
5.6.10.0060.00314.12
5.6.00.0070.00714.23
5.5.380.0060.00610.82
5.5.370.0060.00610.82
5.5.360.0000.01210.91
5.5.350.2200.02015.72
5.5.340.0050.02414.47
5.5.330.0030.04515.55
5.5.320.0020.02315.55
5.5.310.0230.03215.42
5.5.300.0100.02014.37
5.5.290.0030.04214.44
5.5.280.0070.04215.81
5.5.270.0030.03515.86
5.5.260.0100.04215.91
5.5.250.0050.03515.68
5.5.240.0150.03215.51
5.5.230.0030.00710.96
5.5.220.0090.00310.97
5.5.210.0000.01010.81
5.5.200.0070.00310.91
5.5.190.0000.00910.63
5.5.180.0000.01010.71
5.5.170.0030.00610.88
5.5.160.0000.01010.99
5.5.150.0030.00610.89
5.5.140.0030.00610.89
5.5.130.0080.00311.02
5.5.120.0040.00410.67
5.5.110.0070.00010.45
5.5.100.0000.01111.09
5.5.90.0030.00610.93
5.5.80.0030.00610.93
5.5.70.0060.00610.80
5.5.60.0000.00810.52
5.5.50.0040.00410.76
5.5.40.0090.00310.48
5.5.30.0000.00710.97
5.5.20.0030.00710.96
5.5.10.0030.00911.02
5.5.00.0000.00910.93

preferences:
70.07 ms | 400 KiB | 5 Q