3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Y { private $x; function __construct(X $x) { $this->x = $x; } } class X { private $i; function __construct($i) { $this->i = $i; new Y($this); } function __destruct() { echo "I'm done {$this->i} !\n"; } } function make_x($i) { new X($i); } for ($i = 0; $i < 10; $i++) { echo "Making X $i\n"; make_x($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.0110.00818.30
8.3.50.0000.01418.06
8.3.40.0070.00719.02
8.3.30.0100.01019.09
8.3.20.0070.00020.20
8.3.10.0000.00721.87
8.3.00.0040.00419.13
8.2.180.0130.00316.32
8.2.170.0080.00822.96
8.2.160.0000.01419.32
8.2.150.0000.00824.18
8.2.140.0080.00024.66
8.2.130.0050.00326.16
8.2.120.0050.00319.95
8.2.110.0000.01021.00
8.2.100.0090.00317.72
8.2.90.0050.00517.91
8.2.80.0060.00317.97
8.2.70.0000.00917.63
8.2.60.0060.00317.80
8.2.50.0030.00618.07
8.2.40.0030.00620.01
8.2.30.0050.00318.04
8.2.20.0050.00317.56
8.2.10.0000.00818.15
8.2.00.0000.00917.75
8.1.270.0030.00618.76
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0030.00622.09
8.1.230.0030.00720.90
8.1.220.0040.00417.77
8.1.210.0000.00918.77
8.1.200.0030.00617.35
8.1.190.0050.00517.23
8.1.180.0000.00818.10
8.1.170.0060.00319.08
8.1.160.0000.00721.96
8.1.150.0000.00718.84
8.1.140.0000.00717.39
8.1.130.0050.00317.79
8.1.120.0040.00417.37
8.1.110.0080.00017.36
8.1.100.0040.00417.39
8.1.90.0040.00417.29
8.1.80.0070.00017.38
8.1.70.0030.00517.39
8.1.60.0040.00417.49
8.1.50.0080.00017.57
8.1.40.0050.00317.40
8.1.30.0090.00017.61
8.1.20.0030.00617.61
8.1.10.0000.00817.45
8.1.00.0000.00817.49
8.0.300.0000.00720.09
8.0.290.0070.00016.75
8.0.280.0030.00318.51
8.0.270.0080.00017.31
8.0.260.0000.00617.28
8.0.250.0000.00717.03
8.0.240.0000.00717.01
8.0.230.0000.00717.03
8.0.220.0030.00316.84
8.0.210.0070.00016.95
8.0.200.0000.00617.03
8.0.190.0060.00317.02
8.0.180.0000.00816.87
8.0.170.0000.00817.02
8.0.160.0000.00816.86
8.0.150.0040.00416.88
8.0.140.0040.00416.91
8.0.130.0000.00513.36
8.0.120.0040.00416.83
8.0.110.0040.00416.84
8.0.100.0050.00216.96
8.0.90.0030.00616.91
8.0.80.0070.01116.95
8.0.70.0040.00416.79
8.0.60.0030.00516.86
8.0.50.0070.00016.84
8.0.30.0100.01217.23
8.0.20.0150.01417.40
8.0.10.0000.00716.82
8.0.00.0120.00716.69
7.4.330.0020.00315.03
7.4.320.0030.00316.57
7.4.300.0060.00016.48
7.4.290.0050.00316.49
7.4.280.0030.00516.61
7.4.270.0030.00316.63
7.4.260.0080.00016.64
7.4.250.0040.00416.54
7.4.240.0030.00316.57
7.4.230.0030.00316.70
7.4.220.0140.00316.50
7.4.210.0080.00716.67
7.4.200.0000.00716.62
7.4.160.0140.00316.34
7.4.150.0110.01617.40
7.4.140.0100.00917.86
7.4.130.0090.00816.58
7.4.120.0110.00516.43
7.4.110.0120.00616.48
7.4.100.0070.01016.48
7.4.90.0160.00016.56
7.4.80.0070.01019.39
7.4.70.0060.00916.61
7.4.60.0070.01016.48
7.4.50.0050.00016.50
7.4.40.0180.00616.56
7.4.30.0070.01016.59
7.4.00.0100.00714.99
7.3.330.0000.00513.33
7.3.320.0070.00713.38
7.3.310.0000.00716.22
7.3.300.0030.00316.42
7.3.290.0070.00716.31
7.3.280.0090.00816.38
7.3.270.0100.01017.40
7.3.260.0070.01116.26
7.3.250.0130.00816.57
7.3.240.0120.00816.32
7.3.230.0060.01216.55
7.3.210.0150.00616.29
7.3.200.0170.00616.66
7.3.190.0080.00816.52
7.3.180.0090.01316.53
7.3.170.0110.00716.68
7.3.160.0140.00616.48
7.3.10.0060.00816.68
7.3.00.0070.00416.44
7.2.330.0110.00616.69
7.2.320.0100.00716.45
7.2.310.0130.00416.55
7.2.300.0140.00316.43
7.2.290.0060.01616.70
7.2.130.0020.01216.90
7.2.120.0070.00616.63
7.2.110.0020.01116.98
7.2.100.0060.01016.89
7.2.90.0020.01216.82
7.2.80.0060.00816.71
7.2.70.0020.00916.98
7.2.60.0040.01116.78
7.2.50.0070.00616.89
7.2.40.0070.00516.88
7.2.30.0070.00717.04
7.2.20.0090.00516.99
7.2.10.0020.01016.96
7.2.00.0040.00817.81
7.1.250.0020.01015.65
7.1.200.0000.00715.95
7.1.100.0000.01418.16
7.1.70.0000.00716.86
7.1.60.0170.00719.50
7.1.50.0000.02116.96
7.1.00.0000.08022.40
7.0.200.0180.00716.48
7.0.140.0000.07721.97
7.0.60.0230.07721.59
7.0.50.0070.03717.87
7.0.40.0070.07720.24
7.0.30.0270.07720.21
7.0.20.0300.08020.19
7.0.10.0070.05020.22
7.0.00.0100.08020.18
5.6.210.0070.05720.67
5.6.200.0130.07018.29
5.6.190.0030.09020.46
5.6.180.0270.04720.61
5.6.170.0270.07720.52
5.6.160.0030.04320.46
5.6.150.0030.04318.17
5.6.140.0100.08718.21
5.6.130.0070.04018.27
5.6.120.0130.07721.06
5.6.110.0070.08321.10
5.6.100.0100.07721.00
5.6.90.0100.08321.03
5.6.80.0030.08720.35
5.5.350.0300.07320.42
5.5.340.0200.06718.09
5.5.330.0130.06720.41
5.5.320.0330.08020.32
5.5.310.0270.07720.26
5.5.300.0000.04717.97
5.5.290.0070.03717.98
5.5.280.0100.08020.66
5.5.270.0030.08320.88
5.5.260.0070.08320.77
5.5.250.0230.06320.80
5.5.240.0370.06020.16
5.4.450.3430.03319.57
5.4.440.0030.04319.23
5.4.430.1130.06019.48
5.4.420.4070.04719.48
5.4.410.4970.03019.09
5.4.400.0470.05718.90
5.4.390.4570.04019.17
5.4.380.4070.04019.04
5.4.370.3530.03719.23
5.4.360.3970.03319.11
5.4.350.3470.04019.08
5.4.340.4070.03019.21
5.4.320.3930.04019.19
5.4.310.3800.04019.14
5.4.300.4030.03719.18
5.4.290.3870.04019.10
5.4.280.4030.04019.04
5.4.270.3400.04018.94
5.4.260.3830.04319.21
5.4.250.3430.03719.11
5.4.240.4000.03019.00
5.4.230.3930.04319.08
5.4.220.3630.03019.03
5.4.210.3730.03719.10
5.4.200.3930.04019.21
5.4.190.3900.04018.89
5.4.180.4100.04019.23
5.4.170.4130.04018.89
5.4.160.4230.02719.09
5.4.150.4000.04718.92
5.4.140.3600.03716.50
5.4.130.4030.03016.37
5.4.120.3870.03316.39
5.4.110.4400.03316.58
5.4.100.3800.04016.49
5.4.90.3900.04016.66
5.4.80.4070.03016.55
5.4.70.4430.03716.55
5.4.60.3530.03716.50
5.4.50.1970.03316.52
5.4.40.2870.03016.50
5.4.30.2900.04016.30
5.4.20.2870.03716.48
5.4.10.3370.03716.50
5.4.00.2900.03015.93
5.3.290.3870.04314.72
5.3.280.4000.03714.53
5.3.270.4070.03714.76
5.3.260.3970.04714.65
5.3.250.4300.04314.66
5.3.240.4170.03014.63
5.3.230.4130.03314.61
5.3.220.4130.03014.59
5.3.210.4600.03714.59
5.3.200.3800.04314.46
5.3.190.4100.04014.61
5.3.180.4130.03314.63
5.3.170.4600.03314.64
5.3.160.4430.05014.64
5.3.150.2100.03714.57
5.3.140.2370.02714.55
5.3.130.3170.04014.55
5.3.120.2770.04014.61
5.3.110.3370.03714.63
5.3.100.3200.03714.08
5.3.90.2330.04014.20
5.3.80.2800.03714.08
5.3.70.3470.03713.91
5.3.60.3200.03014.01
5.3.50.3000.03714.00
5.3.40.3900.03013.88
5.3.30.3930.03013.86
5.3.20.3870.03713.67
5.3.10.3700.03013.61
5.3.00.3470.03013.61
5.2.170.2470.02711.20
5.2.160.2500.02711.31
5.2.150.3570.02011.22
5.2.140.3470.03011.29
5.2.130.3370.03011.17
5.2.120.3570.02011.15
5.2.110.3170.03011.06
5.2.100.3330.02711.14
5.2.90.3630.02711.27
5.2.80.3500.03311.03
5.2.70.3300.03011.07
5.2.60.3470.03011.21
5.2.50.3470.02311.08
5.2.40.2670.02710.89
5.2.30.3170.03010.90
5.2.20.3200.02711.01
5.2.10.3270.03010.91
5.2.00.0100.03010.78
5.1.60.0100.05010.02
5.1.50.0070.03310.16
5.1.40.0070.0509.94
5.1.30.2570.02710.38
5.1.20.2930.02310.38
5.1.10.2930.02710.08
5.1.00.3100.02310.06
5.0.50.1770.0208.52
5.0.40.1770.0208.49
5.0.30.1630.0338.28
5.0.20.1770.0208.21
5.0.10.1800.0178.23
5.0.00.1800.0338.24
4.4.90.1270.0175.85
4.4.80.1070.0175.81
4.4.70.1230.0235.86
4.4.60.1600.0135.87
4.4.50.1770.0175.81
4.4.40.0000.0535.79
4.4.30.0030.0305.87
4.4.20.1030.0305.98
4.4.10.1830.0135.83
4.4.00.1530.0235.93
4.3.110.1770.0135.72
4.3.100.1870.0175.85
4.3.90.1530.0135.72
4.3.80.1770.0275.67
4.3.70.1930.0135.75
4.3.60.1470.0175.77
4.3.50.1830.0135.71
4.3.40.1830.0235.70
4.3.30.1030.0205.63
4.3.20.0970.0275.63
4.3.10.1000.0205.63
4.3.00.1000.0235.63

preferences:
69.09 ms | 400 KiB | 5 Q