3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Source: https://bugs.php.net/bug.php?id=65967 $objstore = new SplObjectStorage(); $objstore[new StdClass] = 'a'; 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.0110.00416.38
8.3.50.0120.00721.99
8.3.40.0130.00718.75
8.3.30.0140.00019.10
8.3.20.0080.00820.38
8.3.10.0080.00023.66
8.3.00.0090.00019.13
8.2.180.0090.00918.54
8.2.170.0150.00622.96
8.2.160.0140.00320.38
8.2.150.0060.00324.18
8.2.140.0070.00024.66
8.2.130.0060.00326.16
8.2.120.0070.00022.16
8.2.110.0100.00622.31
8.2.100.0060.00617.78
8.2.90.0040.00419.22
8.2.80.0080.00017.97
8.2.70.0050.00317.63
8.2.60.0040.00717.92
8.2.50.0060.00318.07
8.2.40.0040.00419.84
8.2.30.0040.00419.77
8.2.20.0000.00717.66
8.2.10.0040.00417.87
8.2.00.0000.00817.54
8.1.280.0110.00425.92
8.1.270.0060.00323.88
8.1.260.0090.00026.35
8.1.250.0040.00428.09
8.1.240.0040.00723.76
8.1.230.0070.00419.11
8.1.220.0000.00817.74
8.1.210.0050.00318.77
8.1.200.0090.00017.34
8.1.190.0050.00517.23
8.1.180.0030.00618.10
8.1.170.0030.00518.46
8.1.160.0030.00622.00
8.1.150.0040.00418.57
8.1.140.0040.00417.46
8.1.130.0080.00017.71
8.1.120.0040.00417.43
8.1.110.0040.00417.33
8.1.100.0000.00717.26
8.1.90.0000.00717.40
8.1.80.0040.00417.39
8.1.70.0000.00717.35
8.1.60.0080.00017.57
8.1.50.0030.00617.46
8.1.40.0040.00417.50
8.1.30.0030.00517.59
8.1.20.0000.00817.50
8.1.10.0000.00717.45
8.1.00.0060.00317.37
8.0.300.0070.00020.72
8.0.290.0080.00017.18
8.0.280.0070.00018.45
8.0.270.0030.00317.31
8.0.260.0000.00817.21
8.0.250.0030.00316.99
8.0.240.0040.00416.83
8.0.230.0070.00016.88
8.0.220.0070.00016.85
8.0.210.0030.00316.84
8.0.200.0070.00016.84
8.0.190.0030.00616.89
8.0.180.0080.00016.86
8.0.170.0050.00316.94
8.0.160.0070.00016.93
8.0.150.0040.00416.82
8.0.140.0040.00416.82
8.0.130.0060.00013.32
8.0.120.0050.00316.80
8.0.110.0070.00016.84
8.0.100.0030.00516.80
8.0.90.0000.00716.89
8.0.80.0060.01016.82
8.0.70.0040.00416.69
8.0.60.0000.00716.88
8.0.50.0070.00016.68
8.0.30.0060.01217.06
8.0.20.0080.01017.40
8.0.10.0000.00817.00
8.0.00.0120.00616.76
7.4.330.0000.00515.00
7.4.320.0080.00016.34
7.4.300.0000.00816.39
7.4.290.0000.00816.55
7.4.280.0000.00816.45
7.4.270.0070.00016.40
7.4.260.0000.00716.47
7.4.250.0030.00616.41
7.4.240.0020.00616.47
7.4.230.0030.00316.55
7.4.220.0130.00316.55
7.4.210.0050.01116.56
7.4.200.0000.00716.47
7.4.190.0000.00716.46
7.4.160.0030.01316.36
7.4.150.0180.00917.40
7.4.140.0110.00717.86
7.4.130.0050.01316.54
7.4.120.0080.01116.52
7.4.110.0080.01216.46
7.4.100.0150.00616.54
7.4.90.0040.01316.34
7.4.80.0120.00619.39
7.4.70.0150.00616.43
7.4.60.0090.01016.41
7.4.50.0050.00016.41
7.4.40.0100.00722.77
7.4.30.0080.00816.52
7.4.00.0070.00715.11
7.3.330.0000.00613.14
7.3.320.0060.00013.07
7.3.310.0040.00416.13
7.3.300.0070.00016.11
7.3.290.0060.01116.20
7.3.280.0130.00616.24
7.3.270.0180.00917.40
7.3.260.0080.00916.28
7.3.250.0110.01016.49
7.3.240.0070.01116.54
7.3.230.0100.00816.39
7.3.210.0000.01616.20
7.3.200.0070.01119.39
7.3.190.0090.01316.52
7.3.180.0060.01016.31
7.3.170.0060.00916.27
7.3.160.0110.01116.12
7.3.120.0150.00014.76
7.3.110.0030.01015.00
7.3.100.0070.01014.73
7.3.90.0090.00614.61
7.3.80.0060.00614.90
7.3.70.0100.00614.70
7.3.60.0000.01314.76
7.3.50.0120.00314.57
7.3.40.0090.00614.75
7.3.30.0040.01414.75
7.3.20.0040.00716.70
7.3.10.0110.00716.64
7.3.00.0100.00016.42
7.2.330.0070.01016.73
7.2.320.0130.00316.77
7.2.310.0090.00916.54
7.2.300.0100.01316.71
7.2.290.0140.00316.81
7.2.240.0040.01114.91
7.2.230.0070.00715.16
7.2.220.0070.01115.05
7.2.210.0030.01314.75
7.2.200.0130.00314.90
7.2.190.0030.01314.95
7.2.180.0060.00914.96
7.2.170.0100.00715.10
7.2.160.0070.01114.92
7.2.150.0090.00916.60
7.2.140.0000.01016.79
7.2.130.0060.00916.75
7.2.120.0060.00916.73
7.2.110.0090.00016.81
7.2.100.0070.01016.86
7.2.90.0070.01017.09
7.2.80.0040.00816.88
7.2.70.0060.00917.07
7.2.60.0090.00616.75
7.2.50.0130.00316.52
7.2.40.0030.01016.93
7.2.30.0030.00716.45
7.2.20.0070.00717.04
7.2.10.0100.00716.75
7.2.00.0080.00718.07
7.1.330.0040.01115.66
7.1.320.0000.01315.87
7.1.310.0030.01415.79
7.1.300.0090.00615.67
7.1.290.0060.00615.66
7.1.280.0060.00615.52
7.1.270.0000.01315.85
7.1.260.0060.00615.58
7.1.250.0070.00715.48
7.1.200.0060.00615.79
7.1.100.0000.01118.21
7.1.70.0040.00717.13
7.1.60.0140.01019.46
7.1.50.0160.01634.73
7.1.00.0030.07722.45
7.0.200.0150.00316.67
7.0.140.0000.07022.16
7.0.60.0130.07019.91
7.0.50.0030.07017.80
7.0.40.0100.05019.98
7.0.30.0300.04720.16
7.0.20.0370.07320.13
7.0.10.0030.07020.01
7.0.00.0030.04720.17
5.6.280.0070.07021.06
5.6.210.0000.08020.68
5.6.200.0070.04318.15
5.6.190.0130.08320.43
5.6.180.0230.08320.43
5.6.170.0270.04020.53
5.6.160.0100.06320.61
5.6.150.0070.04718.21
5.6.140.0100.05018.18
5.6.130.0070.07018.12
5.6.120.0170.04321.04
5.6.110.0000.04721.00
5.6.100.0100.05021.00
5.6.90.0100.07721.09
5.6.80.0070.04720.52
5.6.70.0400.03020.34
5.5.350.0170.03320.41
5.5.340.0000.05317.98
5.5.330.0100.07020.25
5.5.320.0270.08020.29
5.5.310.0300.07320.30
5.5.300.0030.07017.94
5.5.290.0000.05018.01
5.5.280.0070.08320.96
5.5.270.0100.07720.86
5.5.260.0000.06020.75
5.5.250.0100.06720.55
5.5.240.0300.07020.25
5.4.450.0730.06019.63
5.4.440.0800.05019.62
5.4.430.0330.05019.40
5.4.420.0730.05719.12
5.4.410.0670.06319.32
5.4.400.0600.05019.15
5.4.390.0500.06319.16
5.4.380.0170.05318.68
5.4.370.0430.04318.66
5.4.360.0370.05318.69
5.4.350.0300.05018.70
5.4.340.0400.05318.66
5.4.320.0060.03712.45
5.4.310.0100.04112.45
5.4.300.0050.04112.45
5.4.290.0070.03712.43
5.4.280.0030.03912.33
5.4.270.0040.03912.33
5.4.260.0040.04212.33
5.4.250.0070.04112.33
5.4.240.0060.03512.33
5.4.230.0070.03812.32
5.4.220.0040.04112.32
5.4.210.0060.03812.32
5.4.200.0050.04112.32
5.4.190.0110.03612.32
5.4.180.0060.03712.32
5.4.170.0040.04012.33
5.4.160.0060.03812.32
5.4.150.0030.03912.32
5.4.140.0040.03812.00
5.4.130.0050.03611.99
5.4.120.0030.03811.95
5.4.110.0070.03411.95
5.4.100.0090.04111.95
5.4.90.0080.03611.95
5.4.80.0060.04511.95
5.4.70.0050.03511.94
5.4.60.0050.04811.94
5.4.50.0070.03611.95
5.4.40.0060.03511.93
5.4.30.0080.03411.93
5.4.20.0080.03311.93
5.4.10.0020.03811.93
5.4.00.0070.03511.43
5.3.290.0060.04512.80
5.3.280.0040.03912.71
5.3.270.0040.04012.73
5.3.260.0060.04012.71
5.3.250.0060.03712.72
5.3.240.0060.03812.72
5.3.230.0090.03512.71
5.3.220.0040.03912.68
5.3.210.0050.03912.68
5.3.200.0070.04012.68
5.3.190.0090.03512.68
5.3.180.0080.03412.68
5.3.170.0070.03612.67
5.3.160.0060.03712.67
5.3.150.0090.03512.68
5.3.140.0070.03612.66
5.3.130.0080.03712.66
5.3.120.0060.04012.66
5.3.110.0090.04312.66
5.3.100.0080.04412.12
5.3.90.0060.03912.09
5.3.80.0050.03812.08
5.3.70.0060.03712.08
5.3.60.0090.03412.07
5.3.50.0090.03512.00
5.3.40.0060.03812.00
5.3.30.0100.03411.95
5.3.20.0070.04211.73
5.3.10.0050.05311.70
5.3.00.0070.04111.68
5.2.170.0040.0369.18
5.2.160.0060.0299.18
5.2.150.0050.0389.18
5.2.140.0120.0359.18
5.2.130.0050.0299.14
5.2.120.0060.0339.14
5.2.110.0060.0289.14
5.2.100.0060.0279.14
5.2.90.0050.0299.14
5.2.80.0070.0299.14
5.2.70.0090.0279.14
5.2.60.0050.0299.09
5.2.50.0060.0289.05
5.2.40.0040.0299.04
5.2.30.0050.0299.01
5.2.20.0080.0259.00
5.2.10.0040.0358.93
5.2.00.0070.0358.78
5.1.60.0080.0308.06
5.1.50.0040.0328.06
5.1.40.0040.0258.05
5.1.30.0040.0328.39
5.1.20.0060.0258.41
5.1.10.0020.0278.14
5.1.00.0030.0278.14
5.0.50.0010.0226.62
5.0.40.0030.0206.47
5.0.30.0030.0326.29
5.0.20.0060.0256.26
5.0.10.0040.0206.23
5.0.00.0020.0326.23
4.4.90.0050.0134.78
4.4.80.0030.0164.76
4.4.70.0030.0164.75
4.4.60.0030.0154.75
4.4.50.0020.0154.77
4.4.40.0040.0234.71
4.4.30.0040.0154.76
4.4.20.0050.0234.84
4.4.10.0060.0204.85
4.4.00.0040.0314.76
4.3.110.0050.0204.67
4.3.100.0040.0144.66
4.3.90.0010.0194.64
4.3.80.0050.0234.58
4.3.70.0030.0154.63
4.3.60.0020.0154.63
4.3.50.0050.0144.63
4.3.40.0040.0244.54
4.3.30.0000.0183.28
4.3.20.0030.0183.26
4.3.10.0000.0183.22
4.3.00.0030.02010.54

preferences:
44.89 ms | 401 KiB | 5 Q