3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { public $b; public $c; public function __construct() { $this->b = new B(); $this->c = new C(); } } class B { public $a; public function __construct() { $this->a = new A(); } } class C { } print_r(new A()); var_dump(new A()); var_export(new 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.0930.02078.22
8.3.60.0100.02780.36
8.3.50.0640.04478.05
8.3.40.0260.02047.31
8.3.30.0460.02648.84
8.3.20.0280.00347.29
8.3.10.0070.00748.05
8.3.00.0160.01349.55
8.2.180.0660.02378.36
8.2.170.0400.01347.34
8.2.160.0300.03348.85
8.2.150.0150.01147.27
8.2.140.0230.01047.58
8.2.130.0090.00949.06
8.2.120.0000.01447.97
8.2.110.0290.00349.02
8.2.100.0260.01346.21
8.2.90.0160.01047.60
8.2.80.0110.01446.30
8.2.70.0220.01246.00
8.2.60.0120.01646.30
8.2.50.0190.00646.07
8.2.40.0120.01546.72
8.2.30.0210.00348.15
8.2.20.0210.00446.04
8.2.10.0080.01645.94
8.2.00.0180.01146.11
8.1.280.0720.01779.05
8.1.270.0250.00750.82
8.1.260.0200.00748.86
8.1.250.0070.01550.74
8.1.240.0070.01349.34
8.1.230.0270.01049.54
8.1.220.0160.00846.02
8.1.210.0090.01547.45
8.1.200.0180.00945.75
8.1.190.0060.01645.93
8.1.180.0170.01045.93
8.1.170.0130.01047.20
8.1.160.0210.00647.26
8.1.150.0150.01246.97
8.1.140.0130.01345.85
8.1.130.0190.00346.41
8.1.120.0040.02246.04
8.1.110.0130.01045.99
8.1.100.0090.01246.05
8.1.90.0150.00645.97
8.1.80.0140.00745.96
8.1.70.0150.00645.89
8.1.60.0230.00346.18
8.1.50.0060.02346.14
8.1.40.0070.02146.13
8.1.30.0130.01346.09
8.1.20.0070.02046.06
8.1.10.0330.02079.06
8.1.00.0210.02878.90
8.0.300.0310.01481.39
8.0.290.0230.01778.69
8.0.280.0270.01479.95
8.0.270.0210.02178.13
8.0.260.0190.02278.13
8.0.250.0310.01778.36
8.0.240.0410.01478.46
8.0.230.0260.02378.31
8.0.220.0270.01378.07
8.0.210.0190.01978.15
8.0.200.0100.03178.29
8.0.190.0180.02878.25
8.0.180.0310.02178.19
8.0.170.0310.01478.23
8.0.160.0240.02078.24
8.0.150.0340.02078.18
8.0.140.0300.02378.14
8.0.130.0710.045133.03
8.0.120.0100.03878.18
8.0.110.0300.01378.23
8.0.100.0130.03078.20
8.0.90.0130.03078.19
8.0.80.0830.03378.25
8.0.70.0240.02078.23
8.0.60.0200.02378.16
8.0.50.0200.02378.27
8.0.30.0650.04578.58
8.0.20.0800.05278.22
8.0.10.0240.02478.29
8.0.00.0600.06378.03
7.4.330.0180.01878.41
7.4.320.0400.00777.84
7.4.300.0260.01377.88
7.4.290.0370.01077.89
7.4.280.0240.02077.96
7.4.270.0240.02077.89
7.4.260.0890.036132.98
7.4.250.0280.02177.94
7.4.240.0280.02277.93
7.4.230.0300.01377.85
7.4.220.1130.06377.92
7.4.210.0530.03677.80
7.4.200.0170.02477.86
7.4.190.0130.02977.95
7.4.160.0500.05078.02
7.4.150.0770.04278.07
7.4.140.0760.06577.93
7.4.130.0740.04377.99
7.4.120.0670.04277.95
7.4.110.0480.05877.96
7.4.100.0690.05677.77
7.4.90.0600.05377.91
7.4.80.0600.04377.69
7.4.70.0600.04778.14
7.4.60.0590.05977.95
7.4.50.0160.03677.95
7.4.40.0570.01777.88
7.4.30.0710.04578.00
7.4.00.0400.03076.27
7.3.330.0610.020132.98
7.3.320.0730.026132.87
7.3.310.0300.01777.67
7.3.300.0300.01777.67
7.3.290.0590.05477.67
7.3.280.0700.06277.62
7.3.270.0770.07477.85
7.3.260.0740.06477.71
7.3.250.0630.04677.76
7.3.240.0530.05677.60
7.3.230.0820.05877.85
7.3.210.0820.03377.50
7.3.200.0590.07577.75
7.3.190.0850.05477.55
7.3.180.0850.06777.96
7.3.170.0680.03677.60
7.3.160.0740.05877.86
7.3.120.0360.03276.34
7.3.110.0320.02676.01
7.3.100.0230.04376.10
7.3.90.0270.03776.12
7.3.80.0270.03476.16
7.3.70.0400.02075.98
7.3.60.0240.03876.09
7.3.50.0410.02476.13
7.3.40.0280.03276.07
7.3.30.0390.01975.96
7.3.20.0310.02478.16
7.3.10.0300.02378.74
7.3.00.0350.02778.56
7.2.330.0550.07377.89
7.2.320.0820.04577.80
7.2.310.0690.04677.72
7.2.300.0530.09277.91
7.2.290.0530.07577.89
7.2.240.0270.03476.59
7.2.230.0350.02976.57
7.2.220.0330.02776.40
7.2.210.0320.03276.48
7.2.200.0380.02976.12
7.2.190.0340.03076.40
7.2.180.0290.02676.18
7.2.170.0210.04276.42
7.2.160.0170.04076.38
7.2.150.0280.02878.41
7.2.140.0230.03378.57
7.2.130.0290.02678.70
7.2.120.0400.02378.53
7.2.110.0240.02778.44
7.2.100.1180.01778.53
7.2.90.0090.03578.48
7.2.80.0170.02378.72
7.2.70.0570.03378.79
7.2.60.0850.02678.62
7.2.50.0540.03278.56
7.2.40.0730.03078.66
7.2.30.0310.04578.84
7.2.20.0650.02578.86
7.2.10.0530.04378.71
7.2.00.0590.02680.09
7.1.330.0370.03777.69
7.1.320.0590.02377.59
7.1.310.0300.03077.77
7.1.300.0200.03777.30
7.1.290.0370.03377.66
7.1.280.0340.02177.31
7.1.270.0240.03877.61
7.1.260.0420.02277.47
7.1.250.0170.03077.44
7.1.200.2040.02377.30
7.1.100.8850.03367.23
7.1.70.0130.04578.91
7.1.60.0100.05979.23
7.1.50.0200.05796.61
7.1.00.0070.07084.24
7.0.201.7150.02375.89
7.0.140.0070.10082.04
7.0.110.3100.09381.02
7.0.100.0900.08081.05
7.0.90.0770.11780.95
7.0.80.0930.07781.04
7.0.70.0730.09080.87
7.0.60.0770.11380.87
7.0.50.0830.09381.31
7.0.40.0130.10719.98
7.0.30.0100.08720.17
7.0.20.0170.09320.24
7.0.10.0170.09720.05
7.0.00.0200.11319.95
5.6.280.0330.09084.91
5.6.260.0230.10384.61
5.6.250.0270.10084.51
5.6.240.0230.05785.48
5.6.230.0270.11084.48
5.6.220.0300.11384.44
5.6.210.0400.07784.64
5.6.200.0300.10384.94
5.6.190.0270.09385.18
5.6.180.0270.07785.05
5.6.170.0330.10785.04
5.6.160.0200.08085.05
5.6.150.0330.10385.14
5.6.140.0270.07384.95
5.6.130.0430.10085.13
5.6.120.0430.09385.00
5.6.110.0300.10384.98
5.6.100.0370.10084.92
5.6.90.0270.08084.92
5.6.80.0270.05384.24
5.6.70.0130.06784.38
5.6.60.0230.10384.30
5.6.50.0330.10084.45
5.6.40.0130.09384.20
5.6.30.0330.09084.41
5.6.20.0130.07384.41
5.6.10.0230.06084.21
5.6.00.0100.06784.24
5.5.380.0470.09084.26
5.5.370.0230.08384.46
5.5.360.0230.09384.44
5.5.350.0370.08384.02
5.5.340.0300.10084.61
5.5.330.0330.10784.88
5.5.320.0300.11784.95
5.5.310.0400.08384.89
5.5.300.0370.09384.56
5.5.290.0400.06384.94
5.5.280.0370.10084.75
5.5.270.0370.07384.79
5.5.260.0270.11084.59
5.5.250.0370.09084.52
5.5.240.0200.06084.30
5.5.230.0300.10084.32
5.5.220.0300.06783.97
5.5.210.0330.09784.02
5.5.200.0300.11084.00
5.5.190.0270.09784.21
5.5.180.0200.09384.05
5.5.160.0170.05783.99
5.5.150.0100.06784.20
5.5.140.0330.09384.15
5.5.130.0130.07384.15
5.5.120.0230.05384.15
5.5.110.0200.05784.11
5.5.100.0300.05084.01
5.5.90.0300.04783.89
5.5.80.0230.05384.02
5.5.70.0200.11784.00
5.5.60.0200.05384.04
5.5.50.0230.08083.91
5.5.40.0200.07783.94
5.5.30.0170.06083.99
5.5.20.0300.04784.05
5.5.10.0300.05383.84
5.5.00.0170.06083.83
5.4.450.0370.10383.43
5.4.440.0430.08783.61
5.4.430.0400.10083.37
5.4.420.0500.05383.40
5.4.410.0430.09083.29
5.4.400.0100.08783.11
5.4.390.0300.13083.20
5.4.380.0200.09383.36
5.4.370.0300.05083.17
5.4.360.0230.11383.13
5.4.350.0370.08083.05
5.4.340.0070.07383.29
5.4.320.0200.05783.26
5.4.310.0230.06383.20
5.4.300.0100.06783.05
5.4.290.0230.05083.20
5.4.280.0200.06083.44
5.4.270.0270.07783.20
5.4.260.0200.06083.28
5.4.250.0200.06083.44
5.4.240.0270.04783.03
5.4.230.0070.10083.02
5.4.220.0200.05783.44
5.4.210.0200.06383.27
5.4.200.0270.05083.09
5.4.190.0100.06383.25
5.4.180.0170.05783.07
5.4.170.0100.06783.04
5.4.160.0200.05383.07
5.4.150.0130.06083.08
5.4.140.0070.07780.61
5.4.130.0170.05380.60
5.4.120.0100.06380.55
5.4.110.0270.07080.49
5.4.100.0200.05380.64
5.4.90.0200.05380.79
5.4.80.0200.05080.61
5.4.70.0130.06780.63
5.4.60.0270.09080.55
5.4.50.0200.11080.37
5.4.40.0270.09780.52
5.4.30.0300.08380.48
5.4.20.0130.06780.62
5.4.10.0370.09080.60
5.4.00.0300.09780.06
5.3.290.0200.05774.90
5.3.280.0370.04774.80
5.3.270.0170.06074.71
5.3.260.0100.07074.71
5.3.250.0200.06775.02
5.3.240.0200.06074.87
5.3.230.0200.05774.93
5.3.220.0130.06374.72
5.3.210.0170.06075.12
5.3.200.0100.06774.83
5.3.190.0300.07074.82
5.3.180.0300.07074.89
5.3.170.0370.04374.80
5.3.160.0400.09774.80
5.3.150.0270.09074.84
5.3.140.0330.09774.79
5.3.130.0230.09774.83
5.3.120.0200.10074.78
5.3.110.0270.11075.04
5.3.100.0200.06074.30
5.3.90.0370.08774.27
5.3.80.0270.09774.18
5.3.70.0370.08074.29
5.3.60.0230.10774.18
5.3.50.0270.07774.11
5.3.40.0200.11374.09
5.3.30.0270.09074.07
5.3.20.0200.10073.96
5.3.10.0330.07773.87
5.3.00.0170.10373.79
5.2.170.0000.06026.87
5.2.160.0170.06026.79
5.2.150.0130.06327.00
5.2.140.0070.03726.85
5.2.130.0130.05726.82
5.2.120.0200.05726.69
5.2.110.0130.05726.80
5.2.100.0030.06326.69
5.2.90.0100.06726.75
5.2.80.0100.06726.74
5.2.70.0130.06326.96
5.2.60.0000.04026.65
5.2.50.0070.07026.55
5.2.40.0000.08026.75
5.2.30.0130.07326.66
5.2.20.0100.06726.71
5.2.10.0030.06727.69
5.2.00.0100.06726.46
5.1.60.0200.05728.18
5.1.50.0200.06028.26
5.1.40.0030.06327.97
5.1.30.0130.06328.19
5.1.20.0200.05728.21
5.1.10.0100.04728.04
5.1.00.0100.06328.16
5.0.50.0130.05727.84
5.0.40.0130.05727.68
5.0.30.0130.06327.66
5.0.20.0100.05727.36
5.0.10.0170.05327.32
5.0.00.0170.07743.91
4.4.90.0030.02312.72
4.4.80.0000.01712.72
4.4.70.0030.01312.72
4.4.60.0030.03312.72
4.4.50.0000.03712.72
4.4.40.0000.06012.72
4.4.30.0070.03012.72
4.4.20.0030.03312.72
4.4.10.0000.04012.72
4.4.00.0000.05712.72
4.3.110.0030.03312.72
4.3.100.0000.04012.72
4.3.90.0000.03712.72
4.3.80.0030.02712.72
4.3.70.0030.02312.72
4.3.60.0030.03312.72
4.3.50.0030.03312.72
4.3.40.0070.04312.72
4.3.30.0000.03312.72
4.3.20.0000.03012.72
4.3.10.0070.02712.72
4.3.00.0030.02712.72

preferences:
42.09 ms | 401 KiB | 5 Q