3v4l.org

run code in 300+ PHP versions simultaneously
<?php define('OBJECT_COUNT', 100000); 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.60.0110.00718.43
8.3.50.0100.01021.14
8.3.40.0040.01118.71
8.3.30.0070.00720.34
8.3.20.0040.00420.34
8.3.10.0050.00322.08
8.3.00.0040.01122.51
8.2.180.0070.01416.63
8.2.170.0140.00722.96
8.2.160.0070.00722.21
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0000.00820.93
8.2.110.0070.00420.35
8.2.100.0000.01217.78
8.2.90.0090.00019.04
8.2.80.0070.00019.40
8.2.70.0050.00317.38
8.2.60.0060.00317.80
8.2.50.0080.00018.07
8.2.40.0060.00318.03
8.2.30.0000.00819.34
8.2.20.0040.00417.43
8.2.10.0040.00417.55
8.2.00.0030.00617.46
8.1.280.0140.00325.92
8.1.270.0040.00423.99
8.1.260.0040.00426.35
8.1.250.0050.00328.09
8.1.240.0030.00622.53
8.1.230.0110.00020.92
8.1.220.0050.00318.77
8.1.210.0060.00318.89
8.1.200.0030.00617.10
8.1.190.0030.00517.38
8.1.180.0030.00618.10
8.1.170.0000.00818.51
8.1.160.0000.00718.74
8.1.150.0040.00418.50
8.1.140.0040.00417.31
8.1.130.0000.00717.80
8.1.120.0100.00017.35
8.1.110.0040.00417.38
8.1.100.0000.00717.30
8.1.90.0040.00417.25
8.1.80.0080.00017.32
8.1.70.0040.00417.32
8.1.60.0030.00617.33
8.1.50.0040.00417.43
8.1.40.0000.00817.29
8.1.30.0030.00517.47
8.1.20.0060.00317.41
8.1.10.0030.00617.37
8.1.00.0040.00417.19
8.0.300.0000.00719.84
8.0.290.0040.00417.16
8.0.280.0070.00018.41
8.0.270.0030.00317.01
8.0.260.0000.00616.62
8.0.250.0000.00716.82
8.0.240.0050.00516.89
8.0.230.0080.00016.89
8.0.220.0040.00416.68
8.0.210.0000.00716.84
8.0.200.0000.00716.86
8.0.190.0030.00316.88
8.0.180.0000.00716.77
8.0.170.0030.00316.77
8.0.160.0040.00416.70
8.0.150.0000.00716.80
8.0.140.0040.00416.77
8.0.130.0050.00013.24
8.0.120.0040.00416.77
8.0.110.0040.00416.73
8.0.100.0040.00416.75
8.0.90.0040.00416.73
8.0.80.0150.00016.76
8.0.70.0000.00716.73
8.0.60.0040.00416.60
8.0.50.0000.00716.66
8.0.30.0070.01117.07
8.0.20.0080.01017.40
8.0.10.0070.00316.84
8.0.00.0110.01016.60
7.4.330.0000.00516.66
7.4.320.0000.00616.44
7.4.300.0000.00616.32
7.4.290.0030.00316.39
7.4.280.0030.00316.45
7.4.270.0000.00716.41
7.4.260.0000.00513.06
7.4.250.0040.00416.20
7.4.240.0040.00416.42
7.4.230.0000.00716.41
7.4.220.0120.00616.36
7.4.210.0050.00916.40
7.4.200.0070.00016.25
7.4.190.0030.00316.42
7.4.160.0090.00616.55
7.4.150.0130.01017.40
7.4.140.0110.01017.86
7.4.130.0110.00616.42
7.4.120.0120.00416.48
7.4.110.0140.00616.46
7.4.100.0130.00316.43
7.4.90.0110.00616.32
7.4.80.0130.00519.39
7.4.70.0140.00316.25
7.4.60.0060.01016.27
7.4.50.0000.00816.34
7.4.40.0110.00422.77
7.4.30.0110.01116.30
7.4.00.0030.01314.98
7.3.330.0070.00213.13
7.3.320.0060.00013.04
7.3.310.0060.00316.33
7.3.300.0000.00816.16
7.3.290.0140.00016.22
7.3.280.0080.01016.15
7.3.270.0130.00317.40
7.3.260.0120.00916.46
7.3.250.0130.00416.21
7.3.240.0120.00916.34
7.3.230.0030.01916.45
7.3.210.0100.00716.22
7.3.200.0120.00619.39
7.3.190.0100.01316.15
7.3.180.0100.01316.40
7.3.170.0100.00616.27
7.3.160.0040.01316.30
7.3.120.0090.00614.82
7.2.330.0100.00716.43
7.2.320.0060.01116.16
7.2.310.0100.00716.29
7.2.300.0060.01116.18
7.2.290.0130.01016.27
7.1.70.0060.04927.46
7.1.60.0060.02827.71
7.1.50.0100.03227.49
7.1.40.0030.04027.21
7.1.30.0030.04527.05
7.1.20.0170.05427.11
7.1.10.0230.03026.83
7.1.00.0030.03127.08
7.0.200.0030.03327.27
7.0.190.0040.03527.13
7.0.180.0100.03626.56
7.0.170.0070.03526.46
7.0.160.0030.05926.64
7.0.150.0030.03526.61
7.0.140.0030.03926.52
7.0.130.0070.02826.98
7.0.120.0030.06027.02
7.0.110.0100.03326.80
7.0.100.0070.03426.81
7.0.90.0030.03826.82
7.0.80.0030.04426.88
7.0.70.0000.06426.66
7.0.60.0000.04026.64
7.0.50.0030.03826.90
7.0.40.0070.03720.78
7.0.30.0130.03720.80
7.0.20.0100.04620.66
7.0.10.0070.08020.71
7.0.00.0030.03720.70
5.6.300.0170.10055.57
5.6.290.0070.12454.55
5.6.280.0130.11555.01
5.6.270.0170.10354.29
5.6.260.0100.11755.48
5.6.250.0230.11954.08
5.6.240.0270.10354.46
5.6.230.0170.10355.09
5.6.220.0130.17355.85
5.6.210.0200.11955.71
5.6.200.0100.11754.63
5.6.190.0170.10155.69
5.6.180.0130.11155.60
5.6.170.0130.11454.66
5.6.160.0170.10055.11
5.6.150.0100.10254.23
5.6.140.0130.10855.75
5.6.130.0030.11854.88
5.6.120.0100.09955.14
5.6.110.0170.15755.77
5.6.100.0200.10455.94
5.6.90.0100.11554.18
5.6.80.0190.13153.33
5.6.70.0100.11754.57
5.6.60.0140.12953.42
5.6.50.0030.12054.91
5.6.40.0370.13953.11
5.6.30.0200.10653.25
5.6.20.0320.11053.26
5.6.10.0230.11753.10
5.6.00.0200.13453.31
5.5.380.0100.14451.22
5.5.370.0130.14552.04
5.5.360.0230.20251.96
5.5.350.0100.16451.16
5.5.340.0130.15851.18
5.5.330.0200.14751.73
5.5.320.0170.13051.86
5.5.310.0130.14452.66
5.5.300.0170.19751.44
5.5.290.0070.14352.89
5.5.280.0600.14651.29
5.5.270.0170.15351.43
5.5.260.0190.16752.71
5.5.250.0070.19551.20
5.5.240.0070.16350.31
5.5.230.0200.14450.52
5.5.220.0170.14250.53
5.5.210.0170.14451.59
5.5.200.0130.13950.38
5.5.190.0860.16350.08
5.5.180.0160.15149.93
5.5.160.0100.16250.25
5.5.150.0200.16750.31
5.5.140.0410.17351.04
5.5.130.0570.15850.39
5.5.120.0370.16050.36
5.5.110.0130.13952.30
5.5.100.0300.15852.21
5.5.90.0100.14751.69
5.5.80.0070.16050.91
5.5.70.0200.13651.94
5.5.60.0100.15350.35
5.5.50.0100.13150.58
5.5.40.0240.15851.87
5.5.30.0170.16951.22
5.5.20.0170.15951.81
5.5.10.0230.16451.09
5.5.00.0100.18751.64
5.4.450.0130.15554.11
5.4.440.0160.13852.82
5.4.430.0300.13052.23
5.4.420.0570.16854.19
5.4.410.0170.14153.71
5.4.400.0870.14753.45
5.4.390.0230.14253.67
5.4.380.0070.14352.81
5.4.370.0130.14751.74
5.4.360.0170.13751.99
5.4.350.0130.15451.78
5.4.340.0130.14651.78
5.4.320.0200.15051.90
5.4.310.0130.14552.19
5.4.300.0930.14951.82
5.4.290.0160.13451.96
5.4.280.0170.14151.80
5.4.270.0170.16152.02
5.4.260.0230.12653.89
5.4.250.0200.12652.14
5.4.240.0170.12952.98
5.4.230.0200.12952.30
5.4.220.0100.13952.74
5.4.210.0000.14952.35
5.4.200.0170.13753.52
5.4.190.0070.16353.30
5.4.180.0100.17653.60
5.4.170.0170.17452.37
5.4.160.0200.15651.85
5.4.150.0100.17153.88
5.4.140.0070.19049.73
5.4.130.0100.17950.42
5.4.120.0200.16950.08
5.4.110.0200.15849.41
5.4.100.0100.16349.99
5.4.90.0030.16550.48
5.4.80.0170.16250.35
5.4.70.0100.19549.69
5.4.60.0200.16350.53
5.4.50.0130.16049.65
5.4.40.0170.17250.97
5.4.30.0200.16351.25
5.4.20.0100.18550.37
5.4.10.0240.14251.22
5.4.00.0130.17250.98
5.3.290.0300.27768.57
5.3.280.0100.28169.21
5.3.270.0170.28868.63
5.3.260.0130.27470.22
5.3.250.0170.31669.35
5.3.240.0200.29669.54
5.3.230.0130.27070.00
5.3.220.0230.30370.04
5.3.210.0170.29669.55
5.3.200.0300.25669.04
5.3.190.0230.26069.69
5.3.180.0100.27470.56
5.3.170.0170.26270.86
5.3.160.0230.27570.04
5.3.150.0100.30069.46
5.3.140.0200.29069.75
5.3.130.0170.29568.32
5.3.120.0100.27569.48
5.3.110.0130.31169.02
5.3.100.0270.30969.43
5.3.90.0300.28468.98
5.3.80.0170.26768.03
5.3.70.0170.27069.93
5.3.60.0230.26768.29
5.3.50.0610.27668.30
5.3.40.0530.30867.84
5.3.30.0200.26268.52
5.3.20.0170.29168.09
5.3.10.0270.27368.84
5.3.00.0170.27169.30
5.2.170.0300.14362.72
5.2.160.0100.15562.71
5.2.150.0200.16461.67
5.2.140.0200.18161.71
5.2.130.0270.14361.61
5.2.120.0100.15062.37
5.2.110.0170.17062.36
5.2.100.0140.15661.58
5.2.90.0140.19362.66
5.2.80.0240.13862.41
5.2.70.0220.16463.18
5.2.60.0200.14662.38
5.2.50.0130.17061.04
5.2.40.0130.20461.63
5.2.30.0200.14662.42
5.2.20.0300.16062.53
5.2.10.0500.14561.28
5.2.00.0170.14961.41
5.1.60.0100.15974.99
5.1.50.0200.13874.94
5.1.40.0170.16874.97
5.1.30.0170.15575.33
5.1.20.0200.14576.36
5.1.10.0200.20075.77
5.1.00.0170.13975.91
5.0.50.0340.12473.17
5.0.40.0890.16874.62
5.0.30.0230.15774.64
5.0.20.0770.18073.64
5.0.10.0100.16573.11
5.0.00.0330.20474.62
4.4.90.0030.01815.49
4.4.80.0000.01915.49
4.4.70.0000.02115.49
4.4.60.0040.01715.49
4.4.50.0030.01315.49
4.4.40.0030.02515.49
4.4.30.0030.01415.49
4.4.20.0000.01615.49
4.4.10.0030.03115.49
4.4.00.0000.02615.49
4.3.110.0030.01715.49
4.3.100.0000.01615.49
4.3.90.0030.01415.49
4.3.80.0000.02815.49
4.3.70.0030.02415.49
4.3.60.0040.01415.49
4.3.50.0030.02015.49
4.3.40.0030.02815.49
4.3.30.0030.02815.49
4.3.20.0040.01415.49
4.3.10.0040.01515.49
4.3.00.0030.01315.49

preferences:
43.28 ms | 401 KiB | 5 Q