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::I());

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.00016.38
8.3.50.0090.00821.99
8.3.40.0110.01418.79
8.3.30.0140.00718.73
8.3.20.0000.00820.19
8.3.10.0040.00423.64
8.3.00.0080.00019.38
8.2.180.0150.00316.75
8.2.170.0110.01122.96
8.2.160.0100.00320.39
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0040.00426.16
8.2.120.0040.00426.16
8.2.110.0060.00320.52
8.2.100.0040.00817.78
8.2.90.0040.00419.03
8.2.80.0000.00917.97
8.2.70.0050.00317.63
8.2.60.0030.00517.80
8.2.50.0000.00818.07
8.2.40.0040.00419.34
8.2.30.0000.00720.61
8.2.20.0070.00017.70
8.2.10.0040.00418.05
8.2.00.0030.00518.11
8.1.280.0090.00625.92
8.1.270.0040.00423.96
8.1.260.0080.00026.35
8.1.250.0070.00028.09
8.1.240.0060.00322.13
8.1.230.0090.00322.72
8.1.220.0000.00817.78
8.1.210.0000.00818.77
8.1.200.0030.00617.23
8.1.190.0040.00417.22
8.1.180.0050.00218.10
8.1.170.0050.00518.52
8.1.160.0000.00821.93
8.1.150.0050.00218.86
8.1.140.0000.00819.55
8.1.130.0030.00517.73
8.1.120.0030.00417.36
8.1.110.0030.00617.37
8.1.100.0070.00017.42
8.1.90.0060.00317.27
8.1.80.0040.00417.29
8.1.70.0030.00317.38
8.1.60.0000.00817.39
8.1.50.0060.00317.41
8.1.40.0000.00817.53
8.1.30.0040.00417.60
8.1.20.0030.00617.50
8.1.10.0000.00717.50
8.1.00.0000.00717.33
8.0.300.0070.00018.77
8.0.290.0070.00016.75
8.0.280.0070.00018.27
8.0.270.0030.00317.19
8.0.260.0030.00317.21
8.0.250.0070.00016.86
8.0.240.0070.00016.84
8.0.230.0000.00717.00
8.0.220.0030.00316.88
8.0.210.0040.00416.77
8.0.200.0000.00716.92
8.0.190.0070.00316.91
8.0.180.0040.00416.79
8.0.170.0080.00016.88
8.0.160.0000.00716.90
8.0.150.0000.00716.93
8.0.140.0030.00516.91
8.0.130.0000.00613.39
8.0.120.0050.00316.77
8.0.110.0040.00416.77
8.0.100.0040.00416.79
8.0.90.0030.00416.96
8.0.80.0110.00616.97
8.0.70.0000.00716.82
8.0.60.0070.00017.07
8.0.50.0000.00716.97
8.0.30.0140.00316.88
8.0.20.0120.00717.40
8.0.10.0000.00717.07
8.0.00.0060.01316.83
7.4.330.0000.00515.08
7.4.320.0030.00316.48
7.4.300.0000.00616.43
7.4.290.0070.00016.43
7.4.280.0000.00816.47
7.4.270.0030.00316.41
7.4.260.0030.00316.37
7.4.250.0040.00416.40
7.4.240.0040.00416.56
7.4.230.0080.00016.55
7.4.220.0120.00916.48
7.4.210.0040.01316.53
7.4.200.0030.00316.42
7.4.160.0050.01016.45
7.4.150.0170.00317.40
7.4.140.0100.01217.86
7.4.130.0050.01116.46
7.4.120.0120.00516.49
7.4.110.0120.00916.42
7.4.100.0030.01316.55
7.4.90.0120.00916.59
7.4.80.0040.01919.39
7.4.70.0040.01116.31
7.4.60.0140.00616.39
7.4.50.0000.00616.60
7.4.40.0060.01916.64
7.4.30.0080.00816.64
7.4.10.0100.01014.68
7.4.00.0050.01114.84
7.3.330.0030.00313.30
7.3.320.0030.00313.30
7.3.310.0000.00716.25
7.3.300.0070.00016.36
7.3.290.0130.00616.34
7.3.280.0070.00916.35
7.3.270.0070.01117.40
7.3.260.0110.00716.67
7.3.250.0050.01416.41
7.3.240.0090.01116.44
7.3.230.0060.01216.55
7.3.210.0090.00616.38
7.3.200.0110.00716.28
7.3.190.0130.00716.57
7.3.180.0060.01016.43
7.3.170.0090.00916.35
7.3.160.0160.00016.44
7.3.130.0030.01314.58
7.3.120.0030.01514.91
7.3.110.0070.01014.89
7.3.100.0070.00714.85
7.3.90.0130.00614.45
7.3.80.0050.00515.03
7.3.70.0070.00714.62
7.3.60.0100.00314.69
7.3.50.0040.01214.48
7.3.40.0070.00714.82
7.3.30.0000.00814.74
7.3.20.0140.00016.59
7.3.10.0030.01316.46
7.3.00.0030.00716.39
7.2.330.0110.00616.58
7.2.320.0120.00616.57
7.2.310.0070.01016.35
7.2.300.0100.00716.64
7.2.290.0070.01016.59
7.2.260.0040.01214.86
7.2.250.0070.01115.14
7.2.240.0090.00615.06
7.2.230.0030.01314.91
7.2.220.0030.01414.90
7.2.210.0060.01014.91
7.2.200.0090.00915.04
7.2.190.0070.01014.78
7.2.180.0000.01714.72
7.2.170.0100.00314.92
7.2.160.0060.00614.95
7.2.150.0030.01316.89
7.2.140.0000.01316.77
7.2.130.0030.00716.86
7.2.120.0060.01016.62
7.2.110.0100.00016.89
7.2.100.0030.00916.74
7.2.90.0000.01516.89
7.2.80.0060.00616.50
7.2.70.0040.01116.99
7.2.60.0070.00916.57
7.2.50.0090.00316.63
7.2.40.0070.00716.95
7.2.30.0040.01116.98
7.2.20.0080.00916.88
7.2.10.0070.01116.91
7.2.00.0030.01117.75
7.1.330.0040.01115.52
7.1.320.0000.01715.77
7.1.310.0110.00415.75
7.1.300.0060.00615.48
7.1.290.0030.00615.63
7.1.280.0110.00015.53
7.1.270.0060.00315.83
7.1.260.0100.00715.53
7.1.250.0070.00715.70
7.1.240.0090.00615.68
7.1.230.0100.00715.59
7.1.220.0030.01015.52
7.1.210.0110.00415.70
7.1.200.0090.00315.66
7.1.190.0120.00315.50
7.1.180.0070.00715.52
7.1.170.0070.01015.73
7.1.160.0030.01315.88
7.1.150.0140.00015.84
7.1.140.0060.01015.61
7.1.130.0080.00815.64
7.1.120.0110.00315.67
7.1.110.0040.00915.74
7.1.100.0070.00716.87
7.1.90.0040.01115.77
7.1.80.0100.00615.71
7.1.70.0050.00516.11
7.1.60.0120.00617.67
7.1.50.0050.01016.12
7.1.40.0000.00915.79
7.1.30.0000.00915.81
7.1.20.0060.00915.69
7.1.10.0090.00915.49
7.1.00.0090.03919.02
7.0.330.0000.01015.17
7.0.320.0060.00915.38
7.0.310.0030.00615.38
7.0.300.0060.00615.36
7.0.290.0060.00615.22
7.0.280.0000.01215.37
7.0.270.0030.01315.16
7.0.260.0040.00815.31
7.0.250.0060.00615.11
7.0.240.0110.00415.27
7.0.230.0030.00915.49
7.0.220.0070.01015.32
7.0.210.0070.00715.43
7.0.200.0150.00614.90
7.0.190.0040.00815.48
7.0.180.0090.00615.47
7.0.170.0070.00415.41
7.0.160.0030.01015.44
7.0.150.0090.00915.45
7.0.140.0030.00715.48
7.0.130.0090.00615.36
7.0.120.0040.01115.27
7.0.110.0040.00715.25
7.0.100.0060.00815.34
7.0.90.0110.00415.45
7.0.80.0040.00815.29
7.0.70.0030.01015.35
7.0.60.0080.02517.79
7.0.50.0040.04616.63
7.0.40.0100.03516.77
7.0.30.0130.02916.90
7.0.20.0150.03116.83
7.0.10.0080.02516.62
7.0.00.0010.03216.75
5.6.400.0040.00414.20
5.6.390.0040.01113.98
5.6.380.0040.01214.34
5.6.370.0070.00314.39
5.6.360.0030.00714.54
5.6.350.0030.00914.34
5.6.340.0090.00614.20
5.6.330.0030.00714.27
5.6.320.0000.01813.95
5.6.310.0070.00713.77
5.6.300.0060.00614.06
5.6.290.0030.01014.18
5.6.280.0050.04017.50
5.6.270.0030.01014.34
5.6.260.0060.00914.22
5.6.250.0000.01014.05
5.6.240.0000.01214.30
5.6.230.0040.01114.27
5.6.220.0110.00814.34
5.6.210.0050.04917.43
5.6.200.0060.04616.21
5.6.190.0120.04217.51
5.6.180.0180.04217.35
5.6.170.0180.04517.48
5.6.160.0070.04717.44
5.6.150.0020.02516.22
5.6.140.0090.04116.16
5.6.130.0070.04016.37
5.6.120.0080.05217.46
5.6.110.0050.03917.54
5.6.100.0060.03917.68
5.6.90.0050.02417.55
5.6.80.0080.02217.26
5.6.70.0000.00914.13
5.6.60.0040.01114.25
5.6.50.0030.01313.93
5.6.40.0000.01114.23
5.6.30.0030.00614.07
5.6.20.0040.01114.09
5.6.10.0070.00714.21
5.6.00.0030.01014.11
5.5.380.0070.00414.02
5.5.370.0000.01213.98
5.5.360.0110.00414.26
5.5.350.1430.02217.24
5.5.340.0020.02916.03
5.5.330.0150.03817.05
5.5.320.0050.02517.41
5.5.310.0250.03717.30
5.5.300.0070.04015.90
5.5.290.0030.03316.10
5.5.280.0080.02717.53
5.5.270.0020.03017.64
5.5.260.0080.03517.59
5.5.250.0070.03317.42
5.5.240.0210.03817.14
5.5.230.0000.01214.05
5.5.220.0100.00713.95
5.5.210.0060.00614.00
5.5.200.0030.01014.23
5.5.190.0070.00713.93
5.5.180.0040.01114.05
5.5.170.0000.01414.33
5.5.160.0030.01013.68
5.5.150.0030.00914.21
5.5.140.0100.00314.06
5.5.130.0100.00313.99
5.5.120.0060.00613.89
5.5.110.0040.01114.09
5.5.100.0040.00714.24
5.5.90.0040.01113.64
5.5.80.0000.01314.04
5.5.70.0000.01013.91
5.5.60.0040.00414.05
5.5.50.0030.01014.13
5.5.40.0040.01214.03
5.5.30.0060.00913.62
5.5.20.0040.01114.41
5.5.10.0060.00914.27
5.5.00.0030.01213.99

preferences:
57.14 ms | 401 KiB | 5 Q