3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Header { public function __construct() { var_dump(debug_backtrace()); } } class Modules { public function __construct() { $this->header = new Header(); } } class Project { public $config = "config"; public function __construct() { $this->modules = new Modules(); } } $p = new Project();

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.0120.00316.63
8.3.50.0230.00516.47
8.3.40.0090.00618.85
8.3.30.0110.00418.84
8.3.20.0060.00318.53
8.3.10.0050.00518.77
8.3.00.0060.00319.22
8.2.180.0110.01118.29
8.2.170.0080.00622.96
8.2.160.0070.01018.82
8.2.150.0000.01124.18
8.2.140.0080.00024.66
8.2.130.0050.00326.16
8.2.120.0080.00018.72
8.2.110.0100.00020.39
8.2.100.0070.00617.91
8.2.90.0000.00919.23
8.2.80.0030.00617.97
8.2.70.0090.00017.63
8.2.60.0040.00417.80
8.2.50.0030.00618.07
8.2.40.0080.00018.09
8.2.30.0000.00717.96
8.2.20.0070.00017.59
8.2.10.0050.00217.61
8.2.00.0080.00017.49
8.1.280.0070.01325.92
8.1.270.0080.00024.66
8.1.260.0090.00026.35
8.1.250.0090.00928.09
8.1.240.0040.00422.24
8.1.230.0090.00317.42
8.1.220.0000.00817.74
8.1.210.0050.00318.77
8.1.200.0060.00317.23
8.1.190.0040.00417.53
8.1.180.0060.00318.10
8.1.170.0040.00418.86
8.1.160.0040.00418.87
8.1.150.0000.00818.52
8.1.140.0050.00317.30
8.1.130.0000.00717.83
8.1.120.0000.00717.37
8.1.110.0040.00417.38
8.1.100.0000.00717.28
8.1.90.0040.00417.36
8.1.80.0040.00417.43
8.1.70.0000.00817.32
8.1.60.0000.00917.48
8.1.50.0030.00617.41
8.1.40.0040.00417.55
8.1.30.0050.00317.63
8.1.20.0000.00717.61
8.1.10.0000.00817.40
8.1.00.0060.00317.28
8.0.300.0020.00518.77
8.0.290.0030.00516.58
8.0.280.0000.00718.34
8.0.270.0000.00817.07
8.0.260.0070.00016.74
8.0.250.0070.00016.88
8.0.240.0040.00416.83
8.0.230.0000.00716.81
8.0.220.0070.00016.71
8.0.210.0000.00716.73
8.0.200.0030.00316.77
8.0.190.0040.00416.88
8.0.180.0040.00416.85
8.0.170.0000.00816.72
8.0.160.0000.00716.84
8.0.150.0060.00316.69
8.0.140.0040.00416.75
8.0.130.0000.00513.23
8.0.120.0000.00716.75
8.0.110.0040.00416.78
8.0.100.0000.00716.75
8.0.90.0000.00816.81
8.0.80.0040.01116.71
8.0.70.0050.00216.64
8.0.60.0040.00416.66
8.0.50.0050.00316.64
8.0.30.0170.00717.27
8.0.20.0100.01116.99
8.0.10.0000.00716.98
8.0.00.0080.01116.82
7.4.330.0060.00012.91
7.4.320.0070.00016.46
7.4.300.0000.00616.40
7.4.290.0000.00716.55
7.4.280.0050.00316.60
7.4.270.0030.00316.48
7.4.260.0000.00613.27
7.4.250.0000.00816.52
7.4.240.0030.00416.50
7.4.230.0030.00316.49
7.4.220.0120.00616.47
7.4.210.0090.00716.62
7.4.200.0000.00716.69
7.4.190.0030.00316.41
7.4.160.0100.00716.41
7.4.150.0110.00716.62
7.4.140.0130.01116.34
7.4.130.0110.00916.50
7.4.120.0130.00616.44
7.4.110.0100.01016.44
7.4.100.0190.00016.37
7.4.90.0100.01016.59
7.4.80.0110.01119.39
7.4.70.0120.00916.50
7.4.60.0110.00716.40
7.4.50.0090.00016.24
7.4.40.0060.00916.14
7.4.30.0070.01016.48
7.4.00.0110.00414.83
7.3.330.0050.00313.35
7.3.320.0030.00313.13
7.3.310.0000.00716.23
7.3.300.0000.00716.33
7.3.290.0030.01216.29
7.3.280.0100.00716.31
7.3.270.0110.01516.28
7.3.260.0140.00716.26
7.3.250.0130.00716.23
7.3.240.0140.00516.23
7.3.230.0110.00716.15
7.3.210.0090.00916.33
7.3.200.0180.00316.66
7.3.190.0090.00916.48
7.3.180.0060.01216.60
7.3.170.0090.00916.50
7.3.160.0120.00316.27
7.3.120.0080.00414.78
7.3.10.0110.00016.82
7.3.00.0000.01116.27
7.2.330.0080.01116.28
7.2.320.0060.01216.25
7.2.310.0090.00916.31
7.2.300.0130.01216.52
7.2.290.0140.01016.72
7.2.130.0080.00616.53
7.2.120.0040.00816.88
7.2.110.0000.01316.95
7.2.100.0040.01216.55
7.2.90.0090.00016.85
7.2.80.0090.00316.75
7.2.70.0060.00316.79
7.2.60.0080.00517.05
7.2.50.0030.00616.77
7.2.40.0070.00716.81
7.2.30.0070.00716.81
7.2.20.0060.01016.80
7.2.10.0030.01016.55
7.2.00.0040.00917.82
7.1.250.0040.00715.74
7.1.200.0030.00615.36
7.1.100.0000.01317.71
7.1.70.0000.00817.04
7.1.60.0070.01819.40
7.1.50.0000.01216.93
7.1.00.0030.05022.45
7.0.200.0080.00314.74
7.0.140.0100.06722.18
7.0.120.0030.06322.16
7.0.60.0030.08021.84
7.0.50.0130.03317.86
7.0.40.0200.07320.13
7.0.30.0100.05020.19
7.0.20.0170.04320.33
7.0.10.0100.06720.20
7.0.00.0170.03320.23
5.6.210.0130.07320.47
5.6.200.0100.08718.23
5.6.190.0030.09720.42
5.6.180.0330.07320.61
5.6.170.0270.04720.47
5.6.160.0130.06320.50
5.6.150.0100.07718.19
5.6.140.0070.06718.20
5.6.130.0030.04018.11
5.6.120.0000.06321.09
5.6.110.0130.03720.98
5.6.100.0170.07321.01
5.6.90.0030.05321.11
5.6.80.0130.03320.38
5.5.350.4270.03720.31
5.5.340.0030.04017.96
5.5.330.0130.03720.21
5.5.320.0130.04720.36
5.5.310.0230.07720.24
5.5.300.0030.05717.95
5.5.290.0130.07717.98
5.5.280.0200.07320.88
5.5.270.0000.05020.84
5.5.260.0070.07720.75
5.5.250.0030.06320.66
5.5.240.0100.07720.17
5.4.450.3430.04319.46
5.4.440.2500.05019.37
5.4.430.3800.03719.31
5.4.420.4170.05019.49
5.4.410.4130.04319.45
5.4.400.3800.03718.93
5.4.390.3630.03719.15
5.4.380.4030.03718.95
5.4.370.3870.04019.20
5.4.360.3630.04019.22
5.4.350.3870.03719.15
5.4.340.3970.03319.23
5.4.320.3830.04319.08
5.4.310.3930.03319.23
5.4.300.4030.02719.04
5.4.290.4100.04718.98
5.4.280.3970.03019.22
5.4.270.3900.04719.13
5.4.260.3700.03319.23
5.4.250.4100.03719.26
5.4.240.3470.04319.21
5.4.230.3970.04018.96
5.4.220.3470.04719.14
5.4.210.0000.04019.00
5.4.200.0130.02719.14
5.4.190.3970.03719.16
5.4.180.3770.04019.16
5.4.170.4070.04019.13
5.4.160.3730.03319.05
5.4.150.3870.03319.16
5.4.140.3730.03716.57
5.4.130.3530.04016.40
5.4.120.3800.03716.55
5.4.110.0830.04716.31
5.4.100.0070.06716.27
5.4.90.1430.05716.68
5.4.80.3800.04016.60
5.4.70.4070.04016.51
5.4.60.3930.03316.35
5.4.50.3670.02316.41
5.4.40.3730.04316.52
5.4.30.3900.03316.53
5.4.20.3800.03716.45
5.4.10.3700.04016.42
5.4.00.3570.03715.82
5.3.290.3630.03714.73
5.3.280.3900.03014.76
5.3.270.4000.03314.67
5.3.260.3730.04314.61
5.3.250.3830.03714.76
5.3.240.3870.03314.63
5.3.230.3800.03314.65
5.3.220.3830.03314.57
5.3.210.3630.04314.61
5.3.200.0030.04314.73
5.3.190.4070.04014.57
5.3.180.3830.04314.58
5.3.170.3630.03314.71
5.3.160.3570.05014.64
5.3.150.3700.03714.71
5.3.140.3600.04014.62
5.3.130.3830.03714.58
5.3.120.3830.04314.56
5.3.110.3870.04014.60
5.3.100.3600.03014.09
5.3.90.3970.04714.07
5.3.80.4170.04014.08
5.3.70.4630.04014.19
5.3.60.3770.04014.06
5.3.50.3200.03713.84
5.3.40.3670.03313.99
5.3.30.3630.03313.80
5.3.20.3270.04013.71
5.3.10.3830.04313.68
5.3.00.3030.03013.54
5.2.170.2830.03711.13
5.2.160.3370.03311.21
5.2.150.3070.03011.17
5.2.140.3900.03011.24
5.2.130.3070.02011.16
5.2.120.2970.03011.15
5.2.110.2700.02711.12
5.2.100.2930.03011.04
5.2.90.2830.02711.16
5.2.80.2930.03311.10
5.2.70.2930.03311.11
5.2.60.2830.03310.98
5.2.50.3130.03311.10
5.2.40.2600.04011.06
5.2.30.2700.02310.95
5.2.20.2600.03010.93
5.2.10.2370.03310.86
5.2.00.2770.02710.73
5.1.60.2670.02010.07
5.1.50.3130.02310.00
5.1.40.2700.0339.96
5.1.30.2630.02310.38
5.1.20.2900.03010.25
5.1.10.2800.0239.99
5.1.00.3130.02710.13
5.0.50.1630.0208.60
5.0.40.1730.0238.38
5.0.30.0930.0608.23
5.0.20.1900.0178.20
5.0.10.1700.0208.22
5.0.00.1700.0308.19
4.4.90.1170.0177.89
4.4.80.1170.0137.89
4.4.70.1430.0207.89
4.4.60.1430.0137.89
4.4.50.1430.0207.89
4.4.40.1370.0277.89
4.4.30.1730.0207.89
4.4.20.1830.0137.89
4.4.10.1370.0177.89
4.4.00.1670.0277.89
4.3.110.1570.0177.89
4.3.100.1770.0177.89
4.3.90.1770.0177.89
4.3.80.1470.0237.89
4.3.70.1530.0237.89
4.3.60.1730.0137.89
4.3.50.1700.0177.89
4.3.40.1570.0237.89
4.3.30.0930.0207.89
4.3.20.0730.0177.89
4.3.10.0830.0207.89
4.3.00.0800.0237.89

preferences:
42.46 ms | 401 KiB | 5 Q