3v4l.org

run code in 300+ PHP versions simultaneously
<?php gc_enable(); $objstore = new SplObjectStorage(); $objstore->attach(new StdClass); $objstore->attach(new StdClass); $objstore->attach(new StdClass); gc_collect_cycles(); var_dump($objstore); print serialize($objstore);

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.0060.00918.24
8.3.50.0130.00621.08
8.3.40.0110.00418.79
8.3.30.0030.01019.99
8.3.20.0050.00320.53
8.3.10.0030.00521.09
8.3.00.0040.00423.53
8.2.180.0140.00716.50
8.2.170.0070.01422.96
8.2.160.0130.00320.47
8.2.150.0000.00824.18
8.2.140.0050.00324.66
8.2.130.0080.00026.16
8.2.120.0000.00720.80
8.2.110.0030.00619.27
8.2.100.0090.00317.91
8.2.90.0040.00419.15
8.2.80.0000.00817.97
8.2.70.0040.00717.50
8.2.60.0080.00018.03
8.2.50.0080.00418.07
8.2.40.0040.00418.34
8.2.30.0050.00519.43
8.2.20.0040.00417.53
8.2.10.0020.00517.50
8.2.00.0040.00417.60
8.1.280.0150.00325.92
8.1.270.0040.00423.99
8.1.260.0000.00726.35
8.1.250.0040.00428.09
8.1.240.0060.00322.42
8.1.230.0090.00320.89
8.1.220.0000.00818.77
8.1.210.0050.00519.07
8.1.200.0060.00317.22
8.1.190.0040.00417.30
8.1.180.0030.00518.10
8.1.170.0040.00418.51
8.1.160.0050.00218.79
8.1.150.0030.00518.56
8.1.140.0040.00417.43
8.1.130.0030.00317.92
8.1.120.0000.00717.34
8.1.110.0000.00717.35
8.1.100.0040.00417.39
8.1.90.0080.00017.43
8.1.80.0070.00017.45
8.1.70.0070.00017.25
8.1.60.0040.00417.53
8.1.50.0040.00417.41
8.1.40.0050.00317.42
8.1.30.0040.00417.57
8.1.20.0000.00917.59
8.1.10.0020.00517.52
8.1.00.0000.00917.38
8.0.300.0070.00020.10
8.0.290.0070.00017.05
8.0.280.0030.00318.29
8.0.270.0070.00017.17
8.0.260.0030.00316.74
8.0.250.0040.00416.85
8.0.240.0000.00816.98
8.0.230.0000.00716.89
8.0.220.0030.00316.84
8.0.210.0070.00016.78
8.0.200.0020.00516.93
8.0.190.0000.00816.83
8.0.180.0040.00416.82
8.0.170.0000.00816.87
8.0.160.0050.00216.77
8.0.150.0040.00416.66
8.0.140.0000.00716.76
8.0.130.0050.00013.33
8.0.120.0040.00416.85
8.0.110.0050.00216.71
8.0.100.0070.00016.72
8.0.90.0040.00416.63
8.0.80.0090.00616.76
8.0.70.0000.00716.81
8.0.60.0000.00816.80
8.0.50.0000.00716.78
8.0.30.0130.01317.14
8.0.20.0100.00817.40
8.0.10.0000.00817.00
8.0.00.0100.01316.85
7.4.330.0070.00014.87
7.4.320.0030.00316.33
7.4.300.0030.00316.48
7.4.290.0000.00716.46
7.4.280.0050.00316.42
7.4.270.0040.00416.54
7.4.260.0030.00313.15
7.4.250.0040.00416.45
7.4.240.0000.00816.53
7.4.230.0050.00316.32
7.4.220.0120.00616.54
7.4.210.0090.00816.50
7.4.200.0040.00416.56
7.4.190.0000.00716.55
7.4.160.0090.00916.41
7.4.150.0040.01217.40
7.4.140.0160.00917.86
7.4.130.0140.00516.49
7.4.120.0170.00716.43
7.4.110.0130.00316.42
7.4.100.0060.01216.49
7.4.90.0060.01116.43
7.4.80.0100.01419.39
7.4.70.0050.01116.39
7.4.60.0150.00416.32
7.4.50.0000.00916.40
7.4.40.0130.00022.77
7.4.30.0120.00616.32
7.4.00.0070.01014.98
7.3.330.0000.00612.94
7.3.320.0050.00012.95
7.3.310.0030.00316.00
7.3.300.0000.00716.02
7.3.290.0060.00916.17
7.3.280.0080.00816.13
7.3.270.0170.00017.40
7.3.260.0090.01018.24
7.3.250.0120.00516.31
7.3.240.0170.00716.21
7.3.230.0070.01016.48
7.3.210.0110.00716.32
7.3.200.0090.00919.39
7.3.190.0070.00916.19
7.3.180.0120.00316.16
7.3.170.0080.00816.51
7.3.160.0130.01016.22
7.3.120.0050.01014.50
7.3.110.0060.01214.45
7.3.100.0120.00914.69
7.3.90.0090.00914.66
7.3.80.0030.01014.88
7.3.70.0030.01014.73
7.3.60.0030.01214.77
7.3.50.0120.00314.70
7.3.40.0000.01314.71
7.3.30.0040.01114.66
7.3.20.0070.00316.62
7.3.10.0070.00716.65
7.3.00.0020.01316.58
7.2.330.0120.00616.52
7.2.320.0100.01316.54
7.2.310.0170.00716.43
7.2.300.0110.00716.84
7.2.290.0130.00316.30
7.2.250.0100.01015.18
7.2.240.0000.01815.29
7.2.230.0040.01115.11
7.2.220.0030.01515.02
7.2.210.0060.00914.84
7.2.200.0030.01314.81
7.2.190.0000.01514.83
7.2.180.0030.00614.80
7.2.170.0090.00314.73
7.2.160.0070.00714.92
7.2.150.0030.01016.68
7.2.140.0000.00916.62
7.2.130.0090.00716.85
7.2.120.0110.00616.66
7.2.110.0020.01316.76
7.2.100.0030.00816.89
7.2.90.0080.00716.71
7.2.80.0090.00316.86
7.2.70.0090.00416.77
7.2.60.0050.01116.75
7.2.50.0040.01116.78
7.2.40.0050.00916.77
7.2.30.0060.00616.88
7.2.20.0070.00716.88
7.2.10.0080.00816.71
7.2.00.0080.00517.60
7.1.330.0040.01515.75
7.1.320.0060.00915.84
7.1.310.0000.00915.48
7.1.300.0070.00415.30
7.1.290.0030.01315.63
7.1.280.0000.01515.63
7.1.270.0080.00415.68
7.1.260.0040.00415.82
7.1.250.0050.00815.49
7.1.240.0030.01015.65
7.1.230.0050.00615.69
7.1.220.0050.00815.63
7.1.210.0040.00615.74
7.1.200.0060.00615.75
7.1.190.0050.00515.73
7.1.180.0050.00515.79
7.1.170.0020.01215.61
7.1.160.0050.00515.56
7.1.150.0090.00215.50
7.1.140.0020.01215.73
7.1.130.0040.00615.62
7.1.120.0060.00815.77
7.1.110.0040.00915.77
7.1.100.0020.01116.46
7.1.90.0050.00515.72
7.1.80.0090.00515.73
7.1.70.0060.00415.91
7.1.60.0090.00716.92
7.1.50.0060.00615.82
7.1.40.0050.00715.73
7.1.30.0060.00815.71
7.1.20.0050.00915.81
7.1.10.0070.00615.72
7.1.00.0050.01617.78
7.0.330.0130.00315.25
7.0.320.0030.01115.22
7.0.310.0080.00215.19
7.0.300.0060.00715.40
7.0.290.0050.00615.28
7.0.280.0080.00215.24
7.0.270.0050.01015.30
7.0.260.0030.00715.38
7.0.250.0050.00715.25
7.0.240.0070.00515.48
7.0.230.0080.00315.50
7.0.220.0070.00515.35
7.0.210.0050.01115.25
7.0.200.0050.00515.74
7.0.190.0020.00715.41
7.0.180.0050.00515.44
7.0.170.0050.00715.26
7.0.160.0060.00615.31
7.0.150.0090.00415.17
7.0.140.0040.03017.61
7.0.130.0060.00715.35
7.0.120.0020.01115.38
7.0.110.0040.00915.47
7.0.100.0070.01616.88
7.0.90.0060.03416.77
7.0.80.0130.03116.93
7.0.70.0050.02916.84
7.0.60.0060.03416.72
7.0.50.0100.03316.94
7.0.40.0060.02315.59
7.0.30.0060.03215.56
7.0.20.0090.03115.65
7.0.10.0050.02315.70
7.0.00.0110.02815.58
5.6.400.0030.00913.92
5.6.390.0090.00614.23
5.6.380.0030.00714.49
5.6.370.0070.00714.47
5.6.360.0020.01414.38
5.6.350.0080.00314.33
5.6.340.0030.01014.46
5.6.330.0050.01014.35
5.6.320.0030.00714.33
5.6.310.0080.00614.31
5.6.300.0050.00714.41
5.6.290.0030.00814.36
5.6.280.0040.02916.51
5.6.270.0040.00614.21
5.6.260.0040.00914.51
5.6.250.0080.01916.31
5.6.240.0080.02016.48
5.6.230.0080.03116.32
5.6.220.0060.02816.33
5.6.210.0070.02916.35
5.6.200.0070.03316.53
5.6.190.0070.02216.51
5.6.180.0100.03016.36
5.6.170.0030.03516.53
5.6.160.0050.03616.47
5.6.150.0050.02616.54
5.6.140.0060.01916.55
5.6.130.0080.03516.51
5.6.120.0040.03216.53
5.6.110.0110.02716.63
5.6.100.0100.03016.45
5.6.90.0070.03016.53
5.6.80.0100.03116.24
5.6.70.0060.02616.19
5.6.60.0020.03316.26
5.6.50.0070.02316.24
5.6.40.0050.03016.17
5.6.30.0120.02716.23
5.6.20.0070.03116.24
5.6.10.0040.02916.24
5.6.00.0090.02916.24
5.5.380.0040.02315.22
5.5.370.0060.03115.11
5.5.360.0090.02415.07
5.5.350.0020.03415.21
5.5.340.0060.03215.25
5.5.330.0070.03115.40
5.5.320.0090.02915.34
5.5.310.0040.02415.36
5.5.300.0050.03515.25
5.5.290.0040.03315.18
5.5.280.0060.01815.34
5.5.270.0080.03115.25
5.5.260.0090.02615.17
5.5.250.0080.02315.06
5.5.240.0090.02615.08
5.5.230.0100.02015.21
5.5.220.0060.03215.17
5.5.210.0100.02815.01
5.5.200.0050.02614.94
5.5.190.0090.02915.04
5.5.180.0060.02914.86
5.5.170.0050.01012.43
5.5.160.0080.02414.93
5.5.150.0070.02315.11
5.5.140.0110.02814.87
5.5.130.0110.02315.11
5.5.120.0060.02714.92
5.5.110.0080.01715.12
5.5.100.0040.02115.01
5.5.90.0070.02714.94
5.5.80.0040.03414.97
5.5.70.0090.02615.12
5.5.60.0090.02715.00
5.5.50.0020.03215.00
5.5.40.0030.03314.96
5.5.30.0080.02815.08
5.5.20.0040.03115.07
5.5.10.0040.03315.07
5.5.00.0070.03114.98
5.4.450.0030.03414.16
5.4.440.0050.03114.18
5.4.430.0030.03214.20
5.4.420.0040.01814.20
5.4.410.0120.02514.04
5.4.400.0060.02414.01
5.4.390.0020.03114.04
5.4.380.0040.03114.16
5.4.370.0030.03213.97
5.4.360.0070.02714.04
5.4.350.0040.02913.97
5.4.340.0060.02214.07
5.4.330.0080.00511.59
5.4.320.0020.02114.11
5.4.310.0010.02614.01
5.4.300.0050.03014.12
5.4.290.0060.03014.04
5.4.280.0040.02914.01
5.4.270.0050.02214.06
5.4.260.0040.03214.07
5.4.250.0040.03114.03
5.4.240.0020.02114.12
5.4.230.0030.02814.04
5.4.220.0020.02214.07
5.4.210.0060.02514.06
5.4.200.0060.02913.96
5.4.190.0090.02714.06
5.4.180.0080.02414.05
5.4.170.0030.02813.88
5.4.160.0120.02414.11
5.4.150.0080.02814.02
5.4.140.0020.03113.15
5.4.130.0060.02413.16
5.4.120.0030.01913.19
5.4.110.0030.03013.25
5.4.100.0070.03113.09
5.4.90.0080.02413.23
5.4.80.0030.03113.24
5.4.70.0040.03013.20
5.4.60.0070.02513.06
5.4.50.0060.01613.18
5.4.40.0020.02813.17
5.4.30.0020.01713.06
5.4.20.0050.01713.17
5.4.10.0040.01613.21
5.4.00.0010.01912.98
5.3.290.0090.02412.51
5.3.280.0040.02912.36
5.3.270.0060.02712.48
5.3.260.0070.02512.46
5.3.250.0010.03012.42
5.3.240.0020.02412.45
5.3.230.0050.02012.34
5.3.220.0060.02812.35
5.3.210.0010.03112.41
5.3.200.0030.01912.38
5.3.190.0040.02812.32
5.3.180.0040.02712.35
5.3.170.0070.02512.38
5.3.160.0070.01712.34
5.3.150.0060.02812.32
5.3.140.0040.01712.44
5.3.130.0030.01812.40
5.3.120.0060.01312.41
5.3.110.0010.02412.38
5.3.100.0040.01412.17
5.3.90.0040.02612.24
5.3.80.0050.01312.13
5.3.70.0040.01612.23
5.3.60.0040.01612.23
5.3.50.0060.01812.16
5.3.40.0040.01412.19
5.3.30.0030.01712.19
5.3.20.0050.01112.08
5.3.10.0040.01812.06
5.3.00.0030.01612.05
5.2.170.0020.01510.69
5.2.160.0060.01110.62
5.2.150.0000.02010.67
5.2.140.0030.01510.71
5.2.130.0020.01510.61
5.2.120.0030.01310.62
5.2.110.0000.01610.57
5.2.100.0040.02810.70
5.2.90.0050.01510.67
5.2.80.0050.01410.67
5.2.70.0000.01610.70
5.2.60.0010.01810.64
5.2.50.0000.02310.55
5.2.40.0000.01810.65
5.2.30.0050.01610.61
5.2.20.0080.01110.54
5.2.10.0020.01810.49
5.2.00.0040.01510.49
5.1.60.0020.01510.06
5.1.50.0030.02510.12
5.1.40.0060.01010.13
5.1.30.0040.01210.32
5.1.20.0020.01710.30
5.1.10.0010.01110.17
5.1.00.0000.01710.17
5.0.50.0020.0139.55
5.0.40.0050.0079.55
5.0.30.0000.0199.55
5.0.20.0040.0079.55
5.0.10.0000.0139.55
5.0.00.0030.0179.55
4.4.90.0030.0089.55
4.4.80.0020.0119.55
4.4.70.0020.0109.55
4.4.60.0000.0119.55
4.4.50.0000.0119.55
4.4.40.0020.0209.55
4.4.30.0060.0159.55
4.4.20.0020.0089.55
4.4.10.0020.0099.55
4.4.00.0030.0139.55
4.3.110.0000.0099.55
4.3.100.0030.0059.55
4.3.90.0020.0109.55
4.3.80.0000.0149.55
4.3.70.0030.0079.55
4.3.60.0020.0109.55
4.3.50.0030.0089.55
4.3.40.0020.0149.55
4.3.30.0020.0129.55
4.3.20.0040.0079.55
4.3.10.0020.0109.55
4.3.00.0020.0099.55

preferences:
42.14 ms | 401 KiB | 5 Q