3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { } class B { public function __construct() { die("sorry"); } } $a = new A( new B() ); echo "good"; new B();

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.0130.00718.43
8.3.50.0090.01121.93
8.3.40.0000.01418.84
8.3.30.0100.00319.01
8.3.20.0080.00020.31
8.3.10.0000.00821.84
8.3.00.0040.00422.34
8.2.180.0100.01016.38
8.2.170.0150.00022.96
8.2.160.0100.00320.80
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0000.00826.16
8.2.120.0040.00419.36
8.2.110.0000.01022.30
8.2.100.0040.00717.78
8.2.90.0000.00819.17
8.2.80.0080.00017.97
8.2.70.0040.00417.49
8.2.60.0000.00817.80
8.2.50.0080.00018.07
8.2.40.0040.00418.22
8.2.30.0080.00017.87
8.2.20.0040.00417.63
8.2.10.0040.00419.34
8.2.00.0050.00217.60
8.1.280.0110.00725.92
8.1.270.0040.00423.83
8.1.260.0060.00326.35
8.1.250.0080.00028.09
8.1.240.0070.00323.86
8.1.230.0070.00319.05
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0030.00617.23
8.1.190.0030.00517.28
8.1.180.0040.00418.10
8.1.170.0030.00518.50
8.1.160.0040.00421.95
8.1.150.0040.00418.40
8.1.140.0040.00417.22
8.1.130.0030.00317.79
8.1.120.0070.00017.17
8.1.110.0000.00817.22
8.1.100.0080.00017.39
8.1.90.0070.00017.33
8.1.80.0040.00417.34
8.1.70.0000.00817.21
8.1.60.0040.00417.41
8.1.50.0040.00417.34
8.1.40.0040.00417.34
8.1.30.0000.00817.57
8.1.20.0000.00817.59
8.1.10.0000.00717.54
8.1.00.0000.00817.30
8.0.300.0050.00218.77
8.0.290.0000.00817.05
8.0.280.0030.00318.25
8.0.270.0030.00317.10
8.0.260.0040.00416.81
8.0.250.0000.00616.98
8.0.240.0080.00016.87
8.0.230.0000.00716.77
8.0.220.0030.00316.71
8.0.210.0000.00716.87
8.0.200.0000.00616.84
8.0.190.0070.00016.92
8.0.180.0110.00016.73
8.0.170.0080.00016.91
8.0.160.0000.00716.82
8.0.150.0000.00716.65
8.0.140.0040.00316.76
8.0.130.0030.00313.20
8.0.120.0040.00416.69
8.0.110.0040.00416.81
8.0.100.0000.00716.72
8.0.90.0040.00416.83
8.0.80.0140.00316.85
8.0.70.0040.00416.70
8.0.60.0000.00716.89
8.0.50.0000.00716.80
8.0.30.0080.01117.22
8.0.20.0090.01417.40
8.0.10.0030.00516.97
8.0.00.0070.01316.74
7.4.330.0050.00015.02
7.4.320.0000.00616.37
7.4.300.0070.00016.43
7.4.290.0030.00316.55
7.4.280.0080.00016.44
7.4.270.0000.00716.54
7.4.260.0050.00516.44
7.4.250.0040.00416.45
7.4.240.0050.00216.45
7.4.230.0020.00516.18
7.4.220.0130.01016.56
7.4.210.0100.00616.48
7.4.200.0030.00316.60
7.4.190.0040.00416.62
7.4.160.0030.01316.62
7.4.150.0070.01017.40
7.4.140.0140.00617.86
7.4.130.0080.00916.45
7.4.120.0070.01016.49
7.4.110.0070.01016.54
7.4.100.0060.01516.36
7.4.90.0110.00616.35
7.4.80.0030.01319.39
7.4.70.0030.01416.21
7.4.60.0040.01216.41
7.4.50.0040.00016.22
7.4.40.0060.00622.77
7.4.30.0100.00616.56
7.4.00.0090.00814.77
7.3.330.0030.00313.27
7.3.320.0060.00013.14
7.3.310.0070.00016.34
7.3.300.0000.00616.30
7.3.290.0040.01116.32
7.3.280.0110.00716.24
7.3.270.0130.01317.40
7.3.260.0120.00616.14
7.3.250.0090.00816.43
7.3.240.0060.01016.26
7.3.230.0080.00816.39
7.3.210.0030.01316.31
7.3.200.0140.00919.39
7.3.190.0100.01016.21
7.3.180.0060.01316.34
7.3.170.0130.00316.45
7.3.160.0140.00316.31
7.3.120.0050.01114.72
7.3.110.0070.01014.79
7.3.100.0090.00614.47
7.3.90.0060.00914.71
7.3.80.0030.01214.76
7.3.70.0070.00414.77
7.3.60.0110.00314.60
7.3.50.0110.00314.68
7.3.40.0040.00414.61
7.3.30.0090.00914.75
7.3.20.0060.00816.42
7.3.10.0040.00816.43
7.3.00.0040.00916.63
7.2.330.0090.00916.34
7.2.320.0100.00716.64
7.2.310.0090.00916.62
7.2.300.0130.01016.53
7.2.290.0030.01316.49
7.2.250.0030.01614.95
7.2.240.0100.00714.77
7.2.230.0030.01514.81
7.2.220.0000.01514.89
7.2.210.0070.01014.98
7.2.200.0090.00615.05
7.2.190.0000.01214.93
7.2.180.0060.01014.88
7.2.170.0070.01114.75
7.2.130.0090.00816.54
7.2.120.0040.00916.73
7.2.110.0040.00616.89
7.2.100.0060.00716.69
7.2.90.0110.00416.74
7.2.80.0070.00516.89
7.2.70.0020.01016.74
7.2.60.0050.00816.60
7.2.50.0110.00516.66
7.2.40.0060.00516.54
7.2.30.0110.00616.74
7.2.20.0050.01016.96
7.2.10.0050.00716.88
7.2.00.0030.01117.59
7.1.330.0040.01115.86
7.1.320.0060.00915.80
7.1.310.0040.01115.55
7.1.300.0040.01115.67
7.1.290.0000.01615.66
7.1.280.0080.00615.78
7.1.270.0090.00615.50
7.1.260.0070.00715.66
7.1.250.0070.00715.61
7.1.200.0090.00015.72
7.1.100.0030.00718.00
7.1.70.0160.00316.90
7.1.60.0110.01119.82
7.1.50.0060.01516.96
7.1.00.0030.07722.33
7.0.200.0090.00316.67
7.0.140.0030.07022.05
7.0.60.0030.08719.99
7.0.50.0030.05017.96
7.0.40.0070.06320.24
7.0.30.0200.04020.19
7.0.20.0300.08020.03
7.0.10.0170.05020.33
7.0.00.0000.08720.18
5.6.280.0070.07021.07
5.6.210.0100.07720.47
5.6.200.0130.07718.22
5.6.190.0100.09020.67
5.6.180.0070.04720.50
5.6.170.0430.06020.50
5.6.160.0100.08720.48
5.6.150.0130.04318.16
5.6.140.0030.08318.12
5.6.130.0070.03718.19
5.6.120.0100.07021.05
5.6.110.0070.04021.00
5.6.100.0100.06320.98
5.6.90.0000.04321.12
5.6.80.0100.04020.37
5.5.350.0100.07320.45
5.5.340.0200.06317.92
5.5.330.0000.04320.48
5.5.320.0300.04720.52
5.5.310.0270.04320.36
5.5.300.0030.05317.98
5.5.290.0100.04717.94
5.5.280.0070.04320.88
5.5.270.0030.06020.92
5.5.260.0130.08020.64
5.5.250.0000.04720.68
5.5.240.0000.08320.35
5.4.450.2230.04719.53
5.4.440.2170.04719.42
5.4.430.2070.03719.30
5.4.420.2100.04719.19
5.4.410.1830.03719.50
5.4.400.2100.04719.17
5.4.390.1700.04319.13
5.4.380.1770.04018.83
5.4.370.2130.03718.84
5.4.360.1700.04319.25
5.4.350.1770.03719.14
5.4.340.2070.04018.87
5.4.320.1770.03719.17
5.4.310.2070.04019.22
5.4.300.1870.04019.14
5.4.290.1700.04319.05
5.4.280.2100.05018.98
5.4.270.1730.04019.24
5.4.260.1970.04319.06
5.4.250.2130.03318.88
5.4.240.2100.04019.08
5.4.230.2000.04018.94
5.4.220.1730.04018.84
5.4.210.1730.04019.16
5.4.200.1770.03719.04
5.4.190.1700.04718.97
5.4.180.1800.03719.08
5.4.170.1970.04719.18
5.4.160.2100.03718.97
5.4.150.2000.04019.17
5.4.140.2030.03316.34
5.4.130.2100.04016.39
5.4.120.2130.03716.43
5.4.110.1830.03316.45
5.4.100.2100.04316.41
5.4.90.1930.04016.50
5.4.80.2030.04016.62
5.4.70.1800.03716.49
5.4.60.2000.04016.45
5.4.50.2070.03316.54
5.4.40.1930.04016.42
5.4.30.2030.03716.32
5.4.20.2130.04016.44
5.4.10.1870.03716.56
5.4.00.1900.03315.80
5.3.290.1170.04714.59
5.3.280.0030.07714.59
5.3.270.0030.06314.68
5.3.260.0070.03714.52
5.3.250.1870.03314.50
5.3.240.1830.03714.48
5.3.230.1870.03714.60
5.3.220.2130.04014.79
5.3.210.1900.04314.53
5.3.200.1930.03314.63
5.3.190.2070.04014.55
5.3.180.1800.04314.53
5.3.170.1870.03314.53
5.3.160.1830.04714.48
5.3.150.1800.03714.55
5.3.140.2100.03314.55
5.3.130.1800.04014.44
5.3.120.2030.03714.51
5.3.110.1900.03714.54
5.3.100.2000.03714.04
5.3.90.1830.04014.07
5.3.80.2000.03314.02
5.3.70.2100.04013.92
5.3.60.2170.03013.97
5.3.50.1830.03013.88
5.3.40.1830.03713.88
5.3.30.2230.03714.05
5.3.20.1830.03313.75
5.3.10.2030.04013.88
5.3.00.1800.03313.86
5.2.170.1600.04011.07
5.2.160.1630.02011.07
5.2.150.1800.03311.08
5.2.140.1730.03711.27
5.2.130.1430.03311.01
5.2.120.1500.02711.20
5.2.110.1530.03311.04
5.2.100.1970.03711.11
5.2.90.1900.02711.20
5.2.80.1730.03011.18
5.2.70.1830.02311.00
5.2.60.1800.03010.95
5.2.50.0030.06011.16
5.2.40.0030.05311.12
5.2.30.0030.03311.05
5.2.20.0000.05011.04
5.2.10.0100.03010.78
5.2.00.1800.03010.79
5.1.60.1530.01710.08
5.1.50.1600.02310.22
5.1.40.1530.02010.06
5.1.30.1530.02310.20
5.1.20.1300.02310.28
5.1.10.1230.0239.97
5.1.00.1430.03010.30
5.0.50.0600.0238.52
5.0.40.0800.0278.56
5.0.30.0670.0278.12
5.0.20.0700.0208.08
5.0.10.0600.0208.30
5.0.00.0800.0438.38
4.4.90.0730.0177.73
4.4.80.0600.0207.73
4.4.70.0700.0207.73
4.4.60.0970.0177.73
4.4.50.0700.0137.73
4.4.40.0770.0377.73
4.4.30.0730.0237.73
4.4.20.0630.0207.73
4.4.10.0670.0207.73
4.4.00.0700.0337.73
4.3.110.0700.0137.73
4.3.100.0800.0207.73
4.3.90.0830.0207.73
4.3.80.0970.0377.73
4.3.70.1000.0137.73
4.3.60.0970.0207.73
4.3.50.0970.0137.73
4.3.40.1130.0277.73
4.3.30.0430.0177.73
4.3.20.0370.0137.73
4.3.10.0370.0207.73
4.3.00.0370.0177.73

preferences:
44.62 ms | 401 KiB | 5 Q