3v4l.org

run code in 300+ PHP versions simultaneously
<?php define('OBJECT_COUNT', 130000); class Object { private static $world = array(); private static $maxGuid = 0; protected $_guid = null; public function __construct() { self::$world[$this->_guid = self::$maxGuid++] = $this; } public function __destruct() { unset(self::$world[$this->_guid]); } } for ($i = 0; $i < OBJECT_COUNT; ++$i) { new Object(); } // You probably won't see this because of the "zend_mm_heap corrupted" echo 'If you see this, try to increase OBJECT_COUNT to 100,000'; ?>

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.0100.01016.58
8.3.60.0080.00618.31
8.3.50.0050.01321.08
8.3.40.0090.00618.58
8.3.30.0150.00418.41
8.3.20.0040.00418.52
8.3.10.0050.00321.03
8.3.00.0050.00319.56
8.2.180.0120.00916.50
8.2.170.0040.01122.96
8.2.160.0100.00320.35
8.2.150.0070.00025.66
8.2.140.0070.00324.66
8.2.130.0040.00426.16
8.2.120.0060.00321.03
8.2.110.0060.00320.22
8.2.100.0000.01217.72
8.2.90.0040.00418.22
8.2.80.0040.00419.30
8.2.70.0040.00417.38
8.2.60.0050.00317.68
8.2.50.0060.00318.07
8.2.40.0060.00318.03
8.2.30.0000.00721.23
8.2.20.0000.00717.43
8.2.10.0080.00017.43
8.2.00.0050.00517.64
8.1.280.0100.01025.92
8.1.270.0040.00423.99
8.1.260.0040.01126.35
8.1.250.0080.00028.09
8.1.240.0060.00322.14
8.1.230.0040.00822.75
8.1.220.0030.00617.74
8.1.210.0060.00618.81
8.1.200.0090.00017.22
8.1.190.0070.00017.29
8.1.180.0040.00418.10
8.1.170.0050.00518.28
8.1.160.0040.00418.79
8.1.150.0040.00418.50
8.1.140.0050.00217.30
8.1.130.0030.00317.80
8.1.120.0040.00417.34
8.1.110.0040.00417.37
8.1.100.0000.00717.24
8.1.90.0070.00017.28
8.1.80.0070.00017.29
8.1.70.0000.00717.28
8.1.60.0000.00817.49
8.1.50.0070.00017.23
8.1.40.0040.00417.39
8.1.30.0040.00417.57
8.1.20.0030.00517.46
8.1.10.0030.00517.39
8.1.00.0000.00717.30
8.0.300.0070.00020.26
8.0.290.0040.00417.04
8.0.280.0070.00018.21
8.0.270.0040.00417.05
8.0.260.0020.00516.77
8.0.250.0040.00416.76
8.0.240.0000.00716.88
8.0.230.0000.00816.76
8.0.220.0070.00016.89
8.0.210.0050.00216.79
8.0.200.0060.00016.87
8.0.190.0000.00816.75
8.0.180.0080.00016.81
8.0.170.0030.00716.75
8.0.160.0050.00316.75
8.0.150.0070.00016.73
8.0.140.0040.00416.80
8.0.130.0000.00613.24
8.0.120.0050.00316.81
8.0.110.0030.00316.66
8.0.100.0050.00216.72
8.0.90.0040.00416.64
8.0.80.0130.00316.75
8.0.70.0040.00416.88
8.0.60.0000.00816.80
8.0.50.0000.00716.67
8.0.30.0140.00516.86
8.0.20.0130.00717.40
8.0.10.0000.00917.06
8.0.00.0100.00716.69
7.4.330.0040.00016.85
7.4.320.0000.00616.27
7.4.300.0060.00016.42
7.4.290.0070.00016.46
7.4.280.0000.00716.46
7.4.270.0030.00316.26
7.4.260.0050.00013.09
7.4.250.0080.00016.38
7.4.240.0040.00416.32
7.4.230.0080.00016.36
7.4.220.0170.01016.32
7.4.210.0070.00916.41
7.4.200.0070.00016.25
7.4.190.0030.00316.45
7.4.160.0050.02016.27
7.4.150.0140.00717.40
7.4.140.0090.00917.86
7.4.130.0110.00516.32
7.4.120.0020.01616.38
7.4.110.0090.01116.30
7.4.100.0100.00716.37
7.4.90.0180.00916.30
7.4.80.0080.00819.39
7.4.70.0130.00316.16
7.4.60.0060.01016.23
7.4.50.0000.00716.11
7.4.40.0100.00722.77
7.4.30.0080.00816.27
7.4.00.0070.00914.74
7.3.330.0060.00013.10
7.3.320.0030.00312.92
7.3.310.0040.00416.03
7.3.300.0030.00416.22
7.3.290.0140.00016.14
7.3.280.0090.00716.23
7.3.270.0070.01417.40
7.3.260.0100.00718.24
7.3.250.0060.01216.35
7.3.240.0030.01316.32
7.3.230.0060.01016.39
7.3.210.0100.00616.05
7.3.200.0060.01219.39
7.3.190.0100.00716.48
7.3.180.0090.00616.28
7.3.170.0130.00316.27
7.3.160.0100.01016.38
7.3.120.0090.00714.78
7.3.110.0030.01014.39
7.3.100.0100.00714.84
7.3.90.0090.00414.80
7.3.80.0070.00714.78
7.3.70.0030.01014.68
7.3.60.0070.00314.73
7.3.50.0060.00914.39
7.3.40.0000.01114.67
7.3.30.0000.01214.75
7.3.20.0080.00416.56
7.3.10.0090.00616.31
7.3.00.0060.00416.56
7.2.330.0100.00716.19
7.2.320.0090.00916.40
7.2.310.0060.01116.34
7.2.300.0090.01216.30
7.2.290.0130.00316.23
7.2.250.0060.00914.65
7.2.240.0100.01014.80
7.2.230.0000.01414.66
7.2.220.0000.01214.68
7.2.210.0030.01314.55
7.2.200.0030.00714.73
7.2.190.0030.00714.71
7.2.180.0060.00914.86
7.2.170.0090.00314.85
7.2.130.0100.00316.45
7.2.120.0030.01016.63
7.2.110.0060.00616.39
7.2.100.0050.00516.70
7.2.90.0000.00916.66
7.2.80.0110.00316.45
7.2.70.0030.00916.74
7.2.60.0080.00816.55
7.2.50.0070.00416.88
7.2.40.0060.00916.55
7.2.30.0060.01016.65
7.2.20.0030.01616.82
7.2.10.0030.01416.80
7.2.00.0050.00618.02
7.1.330.0130.06628.09
7.1.320.0130.07128.16
7.1.310.0100.07428.12
7.1.300.0030.06728.15
7.1.290.0060.06828.10
7.1.280.0100.07928.03
7.1.270.0100.06727.88
7.1.260.0100.06327.99
7.1.250.0100.07127.97
7.1.200.0070.06028.20
7.1.70.0030.04929.46
7.1.60.0100.04029.68
7.1.50.0060.04529.44
7.1.40.0270.06428.91
7.1.30.0070.04729.16
7.1.20.0170.05029.12
7.1.10.0030.04529.01
7.1.00.0070.06329.08
7.0.200.0130.05329.30
7.0.190.0070.04928.81
7.0.180.0280.05928.46
7.0.170.0100.04328.46
7.0.160.0100.05828.82
7.0.150.0070.05628.70
7.0.140.0070.04828.79
7.0.130.0070.04729.08
7.0.120.0070.05228.77
7.0.110.0030.05328.88
7.0.100.0140.04128.64
7.0.90.0060.04828.80
7.0.80.0070.05028.81
7.0.70.0070.04628.87
7.0.60.0100.03728.68
7.0.50.0100.08028.67
7.0.40.0000.04820.67
7.0.30.0130.05820.86
7.0.20.0030.05620.64
7.0.10.0060.04220.75
7.0.00.0030.04820.93
5.6.300.0200.13163.21
5.6.290.0130.15063.29
5.6.280.0240.11563.41
5.6.270.0170.12463.70
5.6.260.0030.12863.30
5.6.250.0260.13263.30
5.6.240.0300.11963.30
5.6.230.0340.11463.32
5.6.220.0170.13363.36
5.6.210.0170.15963.70
5.6.200.0130.15163.12
5.6.190.0330.11663.26
5.6.180.0100.13063.39
5.6.170.0360.13563.40
5.6.160.0130.14863.10
5.6.150.0070.14363.43
5.6.140.0200.13863.47
5.6.130.0200.15963.15
5.6.120.0160.12863.39
5.6.110.0070.15363.20
5.6.100.0230.13763.27
5.6.90.0290.13063.11
5.6.80.0130.13062.72
5.6.70.0160.11462.47
5.6.60.0170.11862.70
5.6.50.0100.14262.61
5.6.40.0170.13162.55
5.6.30.0000.17062.48
5.6.20.0130.13862.80
5.6.10.0200.12762.77
5.6.00.0270.11362.71
5.5.380.0170.18660.18
5.5.370.0130.17860.04
5.5.360.0230.18159.76
5.5.350.0200.20259.97
5.5.340.0230.20560.41
5.5.330.0070.20560.47
5.5.320.0200.17960.28
5.5.310.0170.21160.32
5.5.300.0270.18160.40
5.5.290.0200.20060.32
5.5.280.0170.22160.70
5.5.270.0070.19860.36
5.5.260.0200.18160.46
5.5.250.0200.18260.16
5.5.240.0130.18359.84
5.5.230.0160.17859.85
5.5.220.0160.19459.76
5.5.210.0100.18159.81
5.5.200.0100.18859.81
5.5.190.0200.17459.78
5.5.180.0200.17559.93
5.5.160.0070.18759.80
5.5.150.0230.16159.79
5.5.140.0130.18559.79
5.5.130.0130.19859.55
5.5.120.0300.16159.81
5.5.110.0140.20659.75
5.5.100.0130.20659.98
5.5.90.0170.19459.68
5.5.80.0140.18059.71
5.5.70.0200.16859.45
5.5.60.0100.20559.90
5.5.50.0200.17659.31
5.5.40.0170.19059.67
5.5.30.0270.25359.65
5.5.20.0270.23959.96
5.5.10.0200.22659.46
5.5.00.0270.23659.66
5.4.450.0170.19761.76
5.4.440.0170.20661.61
5.4.430.0170.17861.63
5.4.420.0230.17761.59
5.4.410.0230.18461.46
5.4.400.0130.16861.29
5.4.390.0130.18261.43
5.4.380.0230.16161.38
5.4.370.0070.18261.38
5.4.360.0100.20561.27
5.4.350.0160.17061.28
5.4.340.0230.17561.41
5.4.320.0500.22561.25
5.4.310.0230.16961.22
5.4.300.0340.18961.31
5.4.290.0100.19061.37
5.4.280.0130.16761.41
5.4.270.0170.20161.56
5.4.260.0170.18861.30
5.4.250.0070.19261.44
5.4.240.0260.21161.49
5.4.230.0130.17861.44
5.4.220.0130.17361.17
5.4.210.0130.17461.29
5.4.200.0200.16561.30
5.4.190.0230.26261.46
5.4.180.0200.21961.54
5.4.170.0100.25061.48
5.4.160.0200.23661.29
5.4.150.0170.22861.22
5.4.140.0070.24059.07
5.4.130.0290.22758.79
5.4.120.0200.21358.90
5.4.110.0200.22158.86
5.4.100.0200.22659.02
5.4.90.0100.22458.79
5.4.80.0200.22659.03
5.4.70.0130.22659.29
5.4.60.0170.26859.01
5.4.50.0270.23658.97
5.4.40.0730.23958.99
5.4.30.0130.23758.75
5.4.20.0100.22758.83
5.4.10.0170.23758.75
5.4.00.0200.23058.67
5.3.290.0240.21378.30
5.3.280.0170.21478.64
5.3.270.0130.22978.24
5.3.260.0390.23078.07
5.3.250.0230.23677.54
5.3.240.0240.21377.45
5.3.230.0230.22977.44
5.3.220.0000.23977.51
5.3.210.0200.21778.27
5.3.200.0300.21377.23
5.3.190.0170.21578.30
5.3.180.0200.24377.54
5.3.170.0070.24077.52
5.3.160.0600.25678.27
5.3.150.0170.21077.28
5.3.140.0130.22978.26
5.3.130.0230.22978.26
5.3.120.0190.23977.44
5.3.110.0130.22677.39
5.3.100.0170.21377.77
5.3.90.0100.23676.74
5.3.80.0200.24577.35
5.3.70.0170.21076.61
5.3.60.0170.25477.37
5.3.50.0330.22576.82
5.3.40.0300.21176.82
5.3.30.0200.22976.78
5.3.20.0300.23376.59
5.3.10.0170.22577.23
5.3.00.0300.20476.53
5.2.170.0360.13574.98
5.2.160.0170.14374.82
5.2.150.0160.15274.57
5.2.140.0260.12574.83
5.2.130.0270.14674.78
5.2.120.0240.14974.85
5.2.110.0240.13674.84
5.2.100.0270.11874.48
5.2.90.0130.15574.77
5.2.80.0130.13774.73
5.2.70.0230.14474.81
5.2.60.0270.12874.55
5.2.50.0030.16874.36
5.2.40.0270.14674.61
5.2.30.0140.17274.57
5.2.20.0170.15674.52
5.2.10.0170.11974.62
5.2.00.0300.16076.32
5.1.60.0170.20994.16
5.1.50.0270.17294.20
5.1.40.0270.21094.25
5.1.30.0270.18094.70
5.1.20.0270.18694.68
5.1.10.0100.18494.40
5.1.00.0140.20694.44
5.0.50.0630.20692.55
5.0.40.0330.19792.48
5.0.30.0390.18092.51
5.0.20.0100.19792.40
5.0.10.0270.20692.33
5.0.00.0430.22794.39
4.4.90.0070.01116.07
4.4.80.0030.01516.07
4.4.70.0060.01416.07
4.4.60.0030.01516.07
4.4.50.0030.01316.07
4.4.40.0030.02416.07
4.4.30.0000.01816.07
4.4.20.0000.01916.07
4.4.10.0000.01616.07
4.4.00.0000.02616.07
4.3.110.0000.02316.07
4.3.100.0000.02216.07
4.3.90.0070.01016.07
4.3.80.0000.02716.07
4.3.70.0030.01416.07
4.3.60.0030.01716.07
4.3.50.0000.01716.07
4.3.40.0030.02716.07
4.3.30.0030.01516.07
4.3.20.0000.01916.07
4.3.10.0000.01816.07
4.3.00.0000.01716.07

preferences:
42.37 ms | 401 KiB | 5 Q