3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Obj { public function __construct() { $this->things[] = $this; } public function __destruct() { $this->things[] = null; } private $things = []; } for ($i = 0; $i < 1000000; ++$i) { $obj = new Obj(); }

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.1.130.0030.33421.87
8.1.120.0030.32721.68
8.1.110.0030.32621.79
8.1.100.0100.32021.75
8.1.90.0030.33021.70
8.1.80.0030.32521.80
8.1.70.0030.33221.76
8.1.60.0030.43921.98
8.1.50.0070.44121.93
8.1.40.0070.43721.84
8.1.30.0200.45721.89
8.1.20.0100.43521.85
8.1.10.0030.53621.83
8.1.00.0000.44621.89
8.0.260.0100.32225.87
8.0.250.0030.33225.54
8.0.240.0000.38125.31
8.0.230.0130.33325.36
8.0.220.0030.33725.39
8.0.210.0030.33525.38
8.0.200.0070.35725.49
8.0.190.0030.45925.57
8.0.180.0030.44425.43
8.0.170.0070.44525.48
8.0.160.0070.44325.42
8.0.150.0030.44525.30
8.0.140.0070.44625.29
8.0.130.0030.44221.96
8.0.120.0030.45025.42
8.0.110.0070.43925.37
8.0.100.0030.45925.39
8.0.90.0030.44825.44
8.0.80.0261.11625.39
8.0.70.0130.43425.32
8.0.60.0070.45225.21
8.0.50.0030.44625.38
8.0.30.0310.61325.66
8.0.20.0210.87925.72
8.0.10.0070.45425.36
8.0.00.0331.06625.09
7.4.330.0110.41821.79
7.4.320.0100.33125.04
7.4.300.0130.33625.14
7.4.290.0070.44325.15
7.4.280.0000.45125.12
7.4.270.0100.53425.04
7.4.260.0030.44425.10
7.4.250.0070.44925.09
7.4.240.0030.44725.04
7.4.230.0030.44325.15
7.4.220.0231.15525.17
7.4.210.0241.43925.14
7.4.200.0170.42825.25
7.4.160.0230.64425.05
7.4.150.0270.74225.35
7.4.140.0160.86024.94
7.4.130.0260.96225.02
7.4.120.0280.89425.18
7.4.110.0230.99325.18
7.4.100.0231.84725.16
7.4.90.0260.96225.08
7.4.80.0131.13125.11
7.4.70.0330.80125.17
7.4.60.0160.79625.20
7.4.50.0130.63525.12
7.4.40.1240.91125.06
7.4.30.0200.78725.08
7.4.00.0081.07723.42
7.3.330.0070.32117.60
7.3.320.0070.38917.62
7.3.310.0070.32920.42
7.3.300.0100.32520.57
7.3.290.0150.62620.48
7.3.280.0130.67520.54
7.3.270.0030.62120.54
7.3.260.0130.57520.62
7.3.250.0190.51220.51
7.3.240.0110.51320.65
7.3.230.0200.51820.66
7.3.210.0220.68820.63
7.3.200.0100.60420.49
7.3.190.0170.59020.66
7.3.180.0260.56120.82
7.3.170.0250.68020.54
7.3.160.0100.47420.77
7.3.120.0080.60919.18
7.3.110.0030.72719.00
7.3.100.0080.65919.13
7.3.90.0050.59718.87
7.3.80.0070.55719.14
7.3.70.0080.66718.99
7.3.60.0080.52819.14
7.3.50.0070.54319.14
7.3.40.0100.49519.05
7.3.30.0020.67918.92
7.3.20.0050.53920.78
7.3.10.0070.45520.57
7.3.00.0030.46720.70
7.2.330.0230.57421.39
7.2.320.0230.61021.34
7.2.310.0200.55321.24
7.2.300.0160.79621.13
7.2.290.0170.54421.15
7.2.250.0161.10919.14
7.2.240.0120.80019.59
7.2.230.0080.68919.47
7.2.220.0070.61719.61
7.2.210.0080.67119.61
7.2.200.0100.75319.56
7.2.190.0080.67219.49
7.2.180.0080.70919.73
7.2.170.0070.72119.53
7.2.160.0170.42119.36
7.2.150.0100.41420.80
7.2.140.0230.40820.86
7.2.130.0230.40220.95
7.2.120.0170.41320.93
7.2.110.0290.43720.69
7.2.100.0100.40120.95
7.2.90.0170.41820.97
7.2.80.0200.42220.76
7.2.70.0100.40921.00
7.2.60.0030.42720.92
7.2.50.0100.45220.94
7.2.40.0130.41220.82
7.2.30.0030.43020.95
7.2.20.0070.40721.04
7.2.10.0070.44421.02
7.2.00.0100.46221.00
7.1.330.0030.91719.88
7.1.320.0050.93219.93
7.1.310.0050.92019.71
7.1.300.0050.81419.94
7.1.290.0030.89319.81
7.1.280.0070.83319.85
7.1.270.0100.76519.88
7.1.260.0070.60519.92
7.1.250.0100.51419.84
7.0.42.4130.03941.43
7.0.32.5180.04637.20
7.0.22.4260.03035.06
7.0.12.2190.10663.30
7.0.01.5890.16776.18
5.6.190.0261.35924.04
5.6.180.0291.53223.55
5.6.170.0231.38223.70
5.6.160.0331.30523.65
5.6.150.0201.43723.63
5.6.140.0301.63723.84
5.6.130.0411.71924.03
5.6.120.0361.90424.16
5.6.110.0561.42723.56
5.6.100.0461.56523.42
5.6.90.0201.36623.92
5.6.80.0131.60523.45
5.6.70.0231.62823.30
5.6.60.0291.39623.49
5.6.50.0451.39223.35
5.6.40.0231.70923.61
5.6.30.0591.60223.79
5.6.20.0201.55023.57
5.6.10.0291.45523.84
5.6.00.0301.52123.56
5.5.330.0231.41020.55
5.5.320.0261.58920.49
5.5.310.0291.71720.59
5.5.300.0291.37320.80
5.5.290.0391.45920.58
5.5.280.0391.57820.80
5.5.270.0501.38520.61
5.5.260.0451.55820.38
5.5.250.0411.52520.43
5.5.240.0421.51720.41
5.5.230.0311.72320.41
5.5.220.0161.41220.42
5.5.210.0191.70520.59
5.5.200.0201.54320.44
5.5.190.0451.36720.37
5.5.180.0201.41120.54
5.5.170.0391.42723.79
5.5.160.0321.44420.64
5.5.150.0161.38220.15
5.5.140.0101.24420.49
5.5.130.0261.48320.53
5.5.120.0331.53820.45
5.5.110.0391.71320.65
5.5.100.0231.93820.07
5.5.90.0491.57820.43
5.5.80.0161.71520.65
5.5.70.0101.65120.66
5.5.60.0331.32920.19
5.5.50.0161.47420.55
5.5.40.0291.41920.51
5.5.30.0301.52520.57
5.5.20.0301.56820.48
5.5.10.0231.55520.36
5.5.00.0061.42320.57

preferences:
12.69 ms | 406 KiB | 5 Q