3v4l.org

run code in 300+ PHP versions simultaneously
<?php // gc_disable(); // <-- if this comment is removed, everything works as expected $a = array(); $b = new SplObjectStorage(); for ($i = 10000; $i > 0; $i--) { $object = new StdClass(); $a[] = $object; $b->attach($object); } $c = serialize(array($a, $b)); $d = unserialize($c); echo "ok";

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.40.0130.01324.17
8.3.30.0140.01424.33
8.3.20.0040.01125.46
8.3.10.0090.00627.02
8.3.00.0150.00024.52
8.2.170.0270.01724.31
8.2.160.0030.02225.75
8.2.150.0090.00625.94
8.2.140.0070.00727.78
8.2.130.0030.02326.24
8.2.120.0060.00627.31
8.2.110.0100.02427.11
8.2.100.0130.00923.26
8.2.90.0080.00823.51
8.2.80.0080.00823.57
8.2.70.0090.00622.97
8.2.60.0060.00922.98
8.2.50.0040.01222.73
8.2.40.0060.01025.65
8.2.30.0040.01124.93
8.2.20.0060.00923.11
8.2.10.0040.01223.56
8.2.00.0060.00923.19
8.1.270.0040.01028.05
8.1.260.0030.01326.35
8.1.250.0070.00728.10
8.1.240.0030.01625.01
8.1.230.0060.01526.84
8.1.220.0030.01323.52
8.1.210.0100.00624.50
8.1.200.0070.01023.22
8.1.190.0030.01423.23
8.1.180.0070.01023.10
8.1.170.0030.01423.13
8.1.160.0060.01024.64
8.1.150.0040.01124.91
8.1.140.0040.01123.22
8.1.130.0080.00823.68
8.1.120.0040.01123.32
8.1.110.0060.00923.20
8.1.100.0080.00823.30
8.1.90.0110.00423.18
8.1.80.0030.01223.20
8.1.70.0000.01523.15
8.1.60.0120.00923.45
8.1.50.0040.01523.26
8.1.40.0070.01023.39
8.1.30.0030.01423.47
8.1.20.0070.01023.48
8.1.10.0030.01323.49
8.1.00.0060.01023.38
8.0.300.0070.01025.93
8.0.290.0100.00722.65
8.0.280.0040.01224.37
8.0.270.0070.01022.97
8.0.260.0000.01523.17
8.0.250.0060.00922.89
8.0.240.0100.00722.77
8.0.230.0130.00322.81
8.0.220.0030.01322.75
8.0.210.0070.01122.74
8.0.200.0000.01622.71
8.0.190.0030.01622.75
8.0.180.0030.01422.67
8.0.170.0090.00922.77
8.0.160.0070.01022.77
8.0.150.0100.00722.60
8.0.140.0170.00722.63
8.0.130.0080.00819.29
8.0.120.0060.01222.72
8.0.110.0090.00922.70
8.0.100.0090.00922.68
8.0.90.0100.00722.79
8.0.80.0190.02322.72
8.0.70.0000.01722.75
8.0.60.0070.01022.59
8.0.50.0070.01022.75
8.0.30.0310.01922.96
8.0.20.0200.03022.76
8.0.10.0000.01822.94
8.0.00.0220.02622.66
7.4.330.0140.00719.68
7.4.320.0070.01022.76
7.4.300.0000.01622.98
7.4.290.0000.02222.76
7.4.280.0180.00622.84
7.4.270.0000.02222.99
7.4.260.0100.01322.94
7.4.250.0000.02422.77
7.4.240.0050.01822.90
7.4.230.0070.01523.05
7.4.220.0200.03022.92
7.4.210.0060.04023.04
7.4.200.0000.02222.82
7.4.160.0210.03222.84
7.4.150.0110.03122.64
7.4.140.0160.04222.82
7.4.130.0240.02622.97
7.4.120.0150.03622.82
7.4.110.0160.02922.83
7.4.100.0120.03122.74
7.4.90.0140.02722.84
7.4.80.0140.02722.89
7.4.70.0130.04022.91
7.4.60.0180.02223.02
7.4.50.0070.02322.85
7.4.40.0100.03722.82
7.4.30.0170.02423.02
7.4.00.0090.03421.20
7.3.330.0100.15519.08
7.3.320.0070.14319.01
7.3.310.0030.14722.11
7.3.300.0030.14721.88
7.3.290.0130.34022.05
7.3.280.0090.37822.03
7.3.270.0170.36322.47
7.3.260.0160.40722.29
7.3.250.0210.36222.36
7.3.240.0190.36022.14
7.3.230.0130.36822.38
7.3.210.0160.36422.21
7.3.200.0130.36122.31
7.3.190.0160.35322.25
7.3.180.0190.34722.12
7.3.170.0290.35922.19
7.3.160.0160.35522.08
7.3.120.0170.25320.67
7.3.110.0070.25120.76
7.3.100.0100.17820.50
7.3.90.0120.19320.59
7.3.80.0080.20620.83
7.3.70.0080.21620.53
7.3.60.0050.21420.72
7.3.50.0100.19020.46
7.3.40.0050.26720.42
7.3.30.0070.21720.53
7.3.20.0000.22322.65
7.3.10.0030.18922.60
7.3.00.0050.20722.68
7.2.330.0130.38822.37
7.2.320.0200.36022.52
7.2.310.0230.37522.44
7.2.300.0170.35322.22
7.2.290.0100.36122.36
7.2.250.0050.21720.76
7.2.240.0050.21821.01
7.2.230.0100.18520.75
7.2.220.0120.18620.83
7.2.210.0080.20320.70
7.2.200.0080.25420.76
7.2.190.0130.22120.88
7.2.180.0070.22220.91
7.2.170.0100.18220.64
7.2.80.0230.17522.79
7.2.60.0500.17323.00
7.2.50.0610.18922.84
7.1.330.0050.20322.06
7.1.320.0100.18621.88
7.1.310.0050.21021.90
7.1.300.0050.21721.77
7.1.290.0080.23922.03
7.1.280.0070.18321.87
7.1.270.0050.24322.02
7.1.260.0070.18721.65
7.1.200.0030.17522.05
7.1.70.0030.19723.26
7.1.60.0100.27323.45
7.1.50.0030.22623.18
7.1.00.0070.34328.62
7.0.200.0030.17223.01
7.0.140.0000.25328.20
7.0.60.0400.25026.93
7.0.50.0130.28024.78
7.0.40.0100.27320.19
7.0.30.0230.20020.34
7.0.20.0200.28720.34
7.0.10.0030.25020.35
7.0.00.0130.27720.32
5.6.280.0100.11334.31
5.6.210.0200.12333.96
5.6.200.0200.12031.24
5.6.190.0270.10733.34
5.6.180.0270.07033.48
5.6.170.0330.11033.46
5.6.160.0200.11733.55
5.6.150.0000.08031.35
5.6.140.0070.12331.34
5.6.130.0100.13031.36
5.6.120.0100.12733.63
5.6.110.0230.11033.59
5.6.100.0100.11733.70
5.6.90.0130.06033.66
5.6.80.0400.06033.12
5.5.350.0200.10733.49
5.5.340.0130.10331.15
5.5.330.0070.06733.44
5.5.320.0130.10333.25
5.5.310.0270.07733.34
5.5.300.0200.12031.15
5.5.290.0100.09331.15
5.5.280.0170.12033.55
5.5.270.0130.09733.43
5.5.260.0100.08033.34
5.5.250.0170.05733.09
5.5.240.4300.06032.84
5.4.450.0230.10039.10
5.4.440.0230.12736.95
5.4.430.0070.14336.84
5.4.420.0130.08036.82
5.4.410.0100.13736.61
5.4.400.0170.11036.39
5.4.390.0070.08036.51
5.4.380.0130.08336.42
5.4.370.0130.09036.08
5.4.360.0030.10036.31
5.4.350.0230.11336.37
5.4.340.0370.10336.31
5.4.320.0100.12336.16
5.4.310.0130.09036.21
5.4.300.0170.09336.43
5.4.290.0130.07036.34
5.4.280.0170.07036.45
5.4.270.0100.07736.28
5.4.260.0170.09036.46
5.4.250.0170.08336.48
5.4.240.0100.11036.08
5.4.230.0100.12736.41
5.4.220.0130.08036.23
5.4.210.0100.08336.29
5.4.200.0170.07336.47
5.4.190.0100.10735.47
5.4.180.0130.07335.56
5.4.170.0070.07735.41
5.4.160.0130.13735.26
5.4.150.0070.12735.62
5.4.140.0070.12332.75
5.4.130.0130.07332.84
5.4.120.0270.10732.76
5.4.110.0170.11732.78
5.4.100.0130.11032.68
5.4.90.0230.12032.76
5.4.80.0200.11332.89
5.4.70.0100.11732.84
5.4.60.0200.06032.75
5.4.50.0200.09032.79
5.4.40.0230.07732.64
5.4.30.0100.09032.51
5.4.20.0200.11333.10
5.4.10.0070.07733.20
5.4.00.0130.06331.98
5.3.290.0230.07335.66
5.3.280.0100.14735.63
5.3.270.0170.15035.57
5.3.260.0070.10035.64
5.3.250.0070.10035.61
5.3.240.0230.12735.58
5.3.230.0500.08335.60
5.3.220.0100.13335.57
5.3.210.0230.12035.66
5.3.200.0330.12335.61
5.3.190.0270.09035.66
5.3.180.0170.14035.57
5.3.170.0230.12735.64
5.3.160.0100.13735.52
5.3.150.0070.10335.55
5.3.140.0300.12735.61
5.3.130.0230.13035.55
5.3.120.0130.13735.46
5.3.110.0200.13035.55
5.3.100.0070.13335.03
5.3.90.0130.08335.05
5.3.80.0170.10734.96
5.3.70.0130.14334.98
5.3.60.0130.08734.92
5.3.50.0170.09334.82
5.3.40.0270.13334.92
5.3.30.0100.11729.80
5.3.20.0270.08729.59
5.3.10.0000.07329.53
5.3.00.0200.10329.58
5.2.170.0100.05324.23
5.2.160.0200.06724.23
5.2.150.0070.06024.30
5.2.140.0070.06324.23
5.2.130.0130.11024.10
5.2.120.0230.08024.20
5.2.110.0130.09324.23
5.2.100.0330.04024.32
5.2.90.0070.10324.19
5.2.80.0100.09324.09
5.2.70.0070.09724.18
5.2.60.0070.06024.14
5.2.50.0170.10024.21
5.2.40.0270.08324.17
5.2.30.0070.09723.82
5.2.20.0170.08024.04
5.2.10.0200.07019.59
5.2.00.0030.08020.29
5.1.60.0030.06321.06
5.1.50.0100.07320.95
5.1.40.0070.04320.99
5.1.30.0070.05021.35
5.1.20.0070.04321.26
5.1.10.0100.07320.90
5.1.00.0070.05021.08
5.0.50.0000.0278.45
5.0.40.0000.0478.39
5.0.30.0000.0378.22
5.0.20.0100.0238.25
5.0.10.0000.0508.32
5.0.00.0070.0678.20
4.4.90.0100.0277.59
4.4.80.0030.0377.59
4.4.70.0030.0307.59
4.4.60.0030.0177.59
4.4.50.0130.0207.59
4.4.40.0030.0437.59
4.4.30.0000.0207.59
4.4.20.0000.0207.59
4.4.10.0000.0237.59
4.4.00.0030.0537.59
4.3.110.0030.0237.59
4.3.100.0100.0277.59
4.3.90.0000.0307.59
4.3.80.0030.0377.59
4.3.70.0070.0307.59
4.3.60.0100.0277.59
4.3.50.0070.0337.59
4.3.40.0070.0477.59
4.3.30.0000.0307.59
4.3.20.0000.0207.59
4.3.10.0000.0237.59
4.3.00.0030.0277.59

preferences:
56.64 ms | 400 KiB | 5 Q