3v4l.org

run code in 300+ PHP versions simultaneously
<? 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.60.0110.00418.11
8.3.50.0150.00322.05
8.3.40.0070.01118.67
8.3.30.0100.00318.41
8.3.20.0080.00018.65
8.3.10.0040.00421.00
8.3.00.0040.00421.84
8.2.180.0180.00416.50
8.2.170.0080.00818.71
8.2.160.0100.00322.96
8.2.150.0000.00824.18
8.2.140.0080.00024.66
8.2.130.0000.00826.16
8.2.120.0080.00020.84
8.2.110.0040.00420.11
8.2.100.0040.00717.60
8.2.90.0000.00719.09
8.2.80.0050.00317.97
8.2.70.0070.00317.50
8.2.60.0050.00317.68
8.2.50.0030.00618.07
8.2.40.0060.00318.09
8.2.30.0040.00421.14
8.2.20.0030.00517.47
8.2.10.0000.00717.61
8.2.00.0040.00417.41
8.1.280.0070.00725.92
8.1.270.0000.00723.99
8.1.260.0180.00026.35
8.1.250.0030.00628.09
8.1.240.0110.00020.61
8.1.230.0070.00320.82
8.1.220.0090.00018.77
8.1.210.0040.00418.84
8.1.200.0030.00617.23
8.1.190.0040.00417.38
8.1.180.0050.00318.10
8.1.170.0090.00018.60
8.1.160.0000.00718.78
8.1.150.0050.00318.51
8.1.140.0070.00017.32
8.1.130.0000.00717.79
8.1.120.0000.00717.29
8.1.110.0030.00417.34
8.1.100.0000.00817.30
8.1.90.0070.00017.21
8.1.80.0030.00517.29
8.1.70.0030.00317.32
8.1.60.0080.00017.42
8.1.50.0040.00417.25
8.1.40.0060.00317.40
8.1.30.0000.00817.54
8.1.20.0040.00417.39
8.1.10.0020.00517.33
8.1.00.0050.00517.39
8.0.300.0040.00419.72
8.0.290.0040.00417.15
8.0.280.0030.00318.41
8.0.270.0070.00017.04
8.0.260.0040.00416.61
8.0.250.0070.00016.82
8.0.240.0050.00216.85
8.0.230.0040.00416.80
8.0.220.0050.00216.77
8.0.210.0030.00316.74
8.0.200.0000.00616.79
8.0.190.0030.00516.67
8.0.180.0040.00416.75
8.0.170.0040.00416.75
8.0.160.0070.00016.59
8.0.150.0030.00316.75
8.0.140.0000.00716.58
8.0.130.0050.00013.22
8.0.120.0040.00416.63
8.0.110.0030.00516.56
8.0.100.0030.00516.64
8.0.90.0000.00716.75
8.0.80.0100.01316.71
8.0.70.0000.00716.66
8.0.60.0000.00716.70
8.0.50.0080.00016.77
8.0.30.0090.01416.96
8.0.20.0110.00817.40
8.0.10.0000.00716.91
8.0.00.0130.00316.63
7.4.330.0020.00216.85
7.4.320.0000.00616.45
7.4.300.0030.00316.28
7.4.290.0030.00316.45
7.4.280.0000.01016.33
7.4.270.0030.00316.47
7.4.260.0000.00513.13
7.4.250.0000.00816.28
7.4.240.0000.00616.43
7.4.230.0000.00616.36
7.4.220.0090.00916.41
7.4.210.0060.00916.44
7.4.200.0050.00216.34
7.4.190.0030.00316.63
7.4.160.0130.00316.46
7.4.150.0070.01117.40
7.4.140.0120.00517.86
7.4.130.0080.00816.36
7.4.120.0100.00716.39
7.4.110.0060.00916.30
7.4.100.0090.01216.02
7.4.90.0140.00316.56
7.4.80.0120.00619.39
7.4.70.0120.00316.29
7.4.60.0120.00416.36
7.4.50.0080.00016.19
7.4.40.0100.00622.77
7.4.30.0070.01616.39
7.4.00.0040.01414.92
7.3.330.0030.00313.12
7.3.320.0030.00312.93
7.3.310.0040.00416.19
7.3.300.0030.00616.12
7.3.290.0110.00316.13
7.3.280.0090.00716.11
7.3.270.0060.01217.40
7.3.260.0100.00918.24
7.3.250.0110.00516.22
7.3.240.0040.01216.38
7.3.230.0090.00916.23
7.3.210.0160.00316.29
7.3.200.0180.00419.39
7.3.190.0100.00916.07
7.3.180.0060.00916.09
7.3.170.0100.00716.27
7.3.160.0080.01216.17
7.3.120.0070.00714.68
7.2.330.0100.01316.31
7.2.320.0060.01216.44
7.2.310.0150.00716.59
7.2.300.0100.00716.29
7.2.290.0130.00616.30
7.2.00.0060.00619.19
7.1.100.2130.06128.29
7.1.70.0000.05129.25
7.1.60.0070.08029.84
7.1.50.0240.07447.16
7.1.00.0070.13734.79
7.0.200.0760.06026.89
7.0.140.0030.13334.31
7.0.70.0070.13334.04
7.0.60.0070.11734.04
7.0.50.0030.10734.37
7.0.40.0030.10726.33
7.0.30.0030.08026.30
7.0.20.0030.10726.40
7.0.10.0100.11026.39
7.0.00.0130.13026.42
5.6.280.0130.18363.54
5.6.220.0100.13063.07
5.6.210.0300.13763.15
5.6.200.0200.18063.52
5.6.190.0230.16763.43
5.6.180.0230.19063.42
5.6.170.0230.17763.61
5.6.160.0170.17063.42
5.6.150.0200.18763.43
5.6.140.0070.13063.43
5.6.130.0230.14063.38
5.6.120.0030.14363.40
5.6.110.0130.18063.36
5.6.100.0230.17763.41
5.6.90.0200.14763.64
5.6.80.0170.18362.74
5.6.70.0200.17362.82
5.6.60.0170.18062.79
5.6.50.0230.19062.84
5.6.40.0130.16363.13
5.6.30.0030.15362.86
5.6.20.0200.12062.82
5.6.10.0130.16762.81
5.6.00.0130.17062.72
5.5.360.0230.24063.09
5.5.350.0130.26062.83
5.5.340.0170.21063.19
5.5.330.0270.16763.31
5.5.320.0230.21363.17
5.5.310.0200.21363.53
5.5.300.0100.19063.18
5.5.290.0200.19363.31
5.5.280.0130.18063.21
5.5.270.0070.24363.30
5.5.260.0130.26763.29
5.5.250.0170.23363.03
5.5.240.0130.20062.70
5.5.230.0230.24362.40
5.5.220.0170.22062.69
5.5.210.0100.22062.50
5.5.200.0230.20362.58
5.5.190.0100.26062.54
5.5.180.0170.25062.56
5.5.160.0300.21762.63
5.5.150.0170.18762.66
5.5.140.0200.25362.50
5.5.130.0270.23062.53
5.5.120.0300.24362.51
5.5.110.0170.21062.49
5.5.100.0230.21362.44
5.5.90.0230.23762.54
5.5.80.0200.24362.43
5.5.70.0200.24062.55
5.5.60.0230.21362.45
5.5.50.0270.17362.75
5.5.40.0130.25062.45
5.5.30.0230.32762.66
5.5.20.0370.34062.44
5.5.10.0430.30762.55
5.5.00.0370.38062.67
5.4.450.0230.21761.55
5.4.440.0100.19761.86
5.4.430.0130.20061.60
5.4.420.0200.23061.63
5.4.410.0130.20761.41
5.4.400.0200.24061.17
5.4.390.0200.24761.34
5.4.380.0200.23761.40
5.4.370.0300.21761.39
5.4.360.0130.24761.36
5.4.350.0200.22061.36
5.4.340.0270.23761.54
5.4.320.0170.22361.51
5.4.310.0230.23761.23
5.4.300.0230.24361.39
5.4.290.0200.23361.35
5.4.280.0100.17361.61
5.4.270.0100.25061.31
5.4.260.0130.21361.42
5.4.250.0170.24061.35
5.4.240.0200.24361.17
5.4.230.0230.22361.20
5.4.220.0330.19061.21
5.4.210.0270.20061.28
5.4.200.0230.24061.41
5.4.190.0300.21761.36
5.4.180.0130.29761.19
5.4.170.0170.27061.33
5.4.160.0170.25061.46
5.4.150.0230.24361.15
5.4.140.0170.30759.01
5.4.130.0130.29758.77
5.4.120.0200.30358.86
5.4.110.0130.24058.76
5.4.100.0200.30058.70
5.4.90.0130.29758.84
5.4.80.0130.29758.82
5.4.70.0130.26758.64
5.4.60.0230.29358.88
5.4.50.0130.28758.80
5.4.40.0170.30058.77
5.4.30.0130.24358.69
5.4.20.0170.26358.74
5.4.10.0030.24358.81
5.4.00.0130.22758.24
5.3.290.0070.07014.52
5.3.280.0030.07714.56
5.3.270.0100.07014.61
5.3.260.0000.08314.61
5.3.250.0000.08014.54
5.3.240.0030.07314.59
5.3.230.0030.08014.53
5.3.220.0030.07314.39
5.3.210.0030.07314.50
5.3.200.0070.07714.57
5.3.190.0030.05714.52
5.3.180.0030.08014.38
5.3.170.0030.07714.53
5.3.160.0030.07314.42
5.3.150.0100.06714.38
5.3.140.0000.08014.51
5.3.130.0030.07014.50
5.3.120.0000.04714.45
5.3.110.0030.03714.55
5.3.100.0000.04314.03
5.3.90.0030.06714.00
5.3.80.0000.04013.86
5.3.70.0070.03013.95
5.3.60.0000.04313.99
5.3.50.0000.03013.88
5.3.40.0030.03313.86
5.3.30.0030.03313.66
5.3.20.0030.02713.45
5.3.10.0000.03313.51
5.3.00.0000.03013.62
5.2.170.0000.06311.47
5.2.160.0030.04711.47
5.2.150.0000.04011.47
5.2.140.0030.02311.47
5.2.130.0000.02711.47
5.2.120.0000.02311.47
5.2.110.0000.06711.47
5.2.100.0030.02711.47
5.2.90.0000.02711.47
5.2.80.0030.02711.47
5.2.70.0000.04011.47
5.2.60.0030.02711.47
5.2.50.0070.02711.47
5.2.40.0000.02711.47
5.2.30.0030.02711.47
5.2.20.0030.02711.47
5.2.10.0000.04011.47
5.2.00.0030.02311.47
5.1.60.0000.02011.47
5.1.50.0000.02311.47
5.1.40.0000.02311.47
5.1.30.0000.04311.47
5.1.20.0000.03311.47
5.1.10.0030.02311.47
5.1.00.0000.02711.47
5.0.50.0000.02011.47
5.0.40.0000.01711.47
5.0.30.0030.02311.47
5.0.20.0070.01311.47
5.0.10.0000.02011.47
5.0.00.0030.03011.47
4.4.90.0000.01311.47
4.4.80.0000.02311.47
4.4.70.0030.03711.47
4.4.60.0000.01711.47
4.4.50.0030.01311.47
4.4.40.0000.02711.47
4.4.30.0000.01711.47
4.4.20.0000.01311.47
4.4.10.0000.01311.47
4.4.00.0000.02011.47
4.3.110.0000.01311.47
4.3.100.0000.01311.47
4.3.90.0000.03011.47
4.3.80.0000.04011.47
4.3.70.0000.02311.47
4.3.60.0000.01711.47
4.3.50.0000.03011.47
4.3.40.0000.03011.47
4.3.30.0000.01711.47
4.3.20.0000.01711.47
4.3.10.0000.01311.47
4.3.00.0030.02011.47

preferences:
46.23 ms | 401 KiB | 5 Q