3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(gc_enabled()); $objstore = new SplObjectStorage(); $a = new StdClass; $b = new StdClass; $c = new StdClass; $a->b = $b; $b->a = $a; $c->b = $b; $b->c = $c; $objstore->attach($a); $objstore->attach($b); $objstore->attach($c); 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.0120.00318.17
8.3.50.0210.00921.27
8.3.40.0110.00418.68
8.3.30.0080.00820.20
8.3.20.0080.00020.41
8.3.10.0040.00420.92
8.3.00.0080.00023.61
8.2.180.0090.00616.60
8.2.170.0000.01522.96
8.2.160.0040.01220.57
8.2.150.0000.00824.18
8.2.140.0030.00524.66
8.2.130.0080.00026.16
8.2.120.0080.00021.12
8.2.110.0030.00619.38
8.2.100.0100.00317.84
8.2.90.0000.00719.09
8.2.80.0030.00519.28
8.2.70.0060.00617.50
8.2.60.0050.00318.05
8.2.50.0060.00618.07
8.2.40.0050.00318.22
8.2.30.0060.00319.41
8.2.20.0040.00417.73
8.2.10.0050.00317.64
8.2.00.0000.00717.50
8.1.280.0150.00625.92
8.1.270.0060.00323.99
8.1.260.0040.00426.35
8.1.250.0030.00528.09
8.1.240.0100.00022.52
8.1.230.0030.01020.85
8.1.220.0080.00018.77
8.1.210.0050.00318.80
8.1.200.0060.00317.13
8.1.190.0090.00017.53
8.1.180.0000.00918.10
8.1.170.0090.00018.50
8.1.160.0000.00718.80
8.1.150.0070.00018.55
8.1.140.0070.00017.45
8.1.130.0000.00717.83
8.1.120.0000.00717.46
8.1.110.0040.00417.32
8.1.100.0030.00517.37
8.1.90.0000.00717.31
8.1.80.0000.00717.37
8.1.70.0030.00317.37
8.1.60.0030.00617.54
8.1.50.0000.00717.39
8.1.40.0050.00317.47
8.1.30.0000.00717.54
8.1.20.0080.00017.46
8.1.10.0050.00317.56
8.1.00.0030.00617.50
8.0.300.0040.00419.84
8.0.290.0030.00417.15
8.0.280.0000.00718.39
8.0.270.0050.00317.25
8.0.260.0070.00016.82
8.0.250.0040.00416.88
8.0.240.0000.00717.02
8.0.230.0030.00316.89
8.0.220.0050.00216.88
8.0.210.0020.00516.73
8.0.200.0030.00316.92
8.0.190.0050.00216.81
8.0.180.0070.00016.88
8.0.170.0000.00816.87
8.0.160.0050.00316.69
8.0.150.0000.00716.77
8.0.140.0070.00016.69
8.0.130.0030.00313.26
8.0.120.0090.00016.83
8.0.110.0050.00316.85
8.0.100.0040.00416.86
8.0.90.0000.00716.88
8.0.80.0060.00916.88
8.0.70.0000.00816.89
8.0.60.0040.00416.67
8.0.50.0050.00216.71
8.0.30.0130.00816.85
8.0.20.0100.01217.40
8.0.10.0040.00416.77
8.0.00.0130.00616.67
7.4.330.0000.00614.96
7.4.320.0060.00016.59
7.4.300.0030.00316.57
7.4.290.0000.00716.46
7.4.280.0050.00316.55
7.4.270.0030.00316.50
7.4.260.0030.00313.16
7.4.250.0000.00816.52
7.4.240.0030.00316.32
7.4.230.0040.00416.55
7.4.220.0030.01516.59
7.4.210.0050.01016.58
7.4.200.0000.00716.57
7.4.190.0030.00316.49
7.4.160.0000.01716.49
7.4.150.0110.00817.40
7.4.140.0060.01817.86
7.4.130.0140.00816.48
7.4.120.0080.01216.47
7.4.110.0120.00816.38
7.4.100.0100.01016.54
7.4.90.0060.01216.53
7.4.80.0130.00919.39
7.4.70.0000.01716.53
7.4.60.0120.01216.43
7.4.50.0030.00616.67
7.4.40.0090.00922.77
7.4.30.0100.01316.37
7.4.00.0060.01114.98
7.3.330.0000.00513.10
7.3.320.0030.00213.07
7.3.310.0000.00716.01
7.3.300.0060.00016.24
7.3.290.0100.00316.19
7.3.280.0080.00816.22
7.3.270.0140.01117.40
7.3.260.0090.00918.24
7.3.250.0100.01016.33
7.3.240.0040.01416.50
7.3.230.0070.01116.39
7.3.210.0120.00616.54
7.3.200.0100.01319.39
7.3.190.0110.00716.47
7.3.180.0110.01116.18
7.3.170.0110.00516.27
7.3.160.0110.00716.31
7.3.120.0060.00914.90
7.3.00.0120.00316.43
7.2.330.0090.01216.56
7.2.320.0140.01016.67
7.2.310.0090.01516.54
7.2.300.0100.00716.49
7.2.290.0030.01416.60
7.2.130.0120.00616.93
7.2.120.0110.00716.53
7.2.110.0100.00316.92
7.2.100.0030.01316.59
7.2.90.0000.01116.88
7.2.80.0060.00916.92
7.2.70.0040.01116.53
7.2.60.0060.00616.91
7.2.50.0060.01016.64
7.2.40.0040.00816.93
7.2.30.0000.01316.80
7.2.20.0000.01016.60
7.2.10.0030.01016.75
7.2.00.0080.00416.64
7.1.250.0040.00415.45
7.1.240.0100.01015.67
7.1.230.0110.00015.69
7.1.220.0170.00315.68
7.1.210.0100.00615.63
7.1.200.0030.00815.62
7.1.190.0070.00715.76
7.1.180.0080.00515.70
7.1.170.0070.00715.77
7.1.160.0040.00815.79
7.1.150.0040.01215.71
7.1.140.0040.00815.67
7.1.130.0070.01015.46
7.1.120.0150.00015.56
7.1.110.0060.00915.95
7.1.100.0040.00415.91
7.1.90.0030.01015.42
7.1.80.0030.00915.63
7.1.70.0050.00716.44
7.1.60.0070.01217.47
7.1.50.0040.00716.41
7.1.40.0040.00715.68
7.1.30.0100.00315.53
7.1.20.0030.00715.62
7.1.10.0070.00415.75
7.1.00.0090.03519.11
7.0.330.0070.01015.28
7.0.320.0080.00615.35
7.0.310.0050.00315.10
7.0.300.0080.00515.31
7.0.290.0100.00715.38
7.0.280.0100.00615.27
7.0.270.0030.01015.28
7.0.260.0000.01315.39
7.0.250.0100.00715.44
7.0.240.0130.00315.38
7.0.230.0000.01115.54
7.0.220.0090.00315.10
7.0.210.0080.00415.39
7.0.200.0020.00815.89
7.0.190.0100.00015.40
7.0.180.0100.00015.41
7.0.170.0090.00615.35
7.0.160.0000.00815.36
7.0.150.0040.00715.23
7.0.140.0060.04318.79
7.0.130.0070.00415.42
7.0.120.0030.01015.55
7.0.110.0110.00415.11
7.0.100.0140.04017.61
7.0.90.0080.04617.53
7.0.80.0040.04617.57
7.0.70.0060.04617.65
7.0.60.0070.03517.65
7.0.50.0080.03317.74
7.0.40.0030.04916.78
7.0.30.0070.04716.83
7.0.20.0080.04516.57
7.0.10.0040.04716.57
7.0.00.0140.02816.73
5.6.380.0030.01214.55
5.6.370.0030.00614.22
5.6.360.0060.00614.23
5.6.350.0030.00613.99
5.6.340.0030.01414.15
5.6.330.0110.00514.45
5.6.320.0080.00314.03
5.6.310.0070.00714.35
5.6.300.0000.01014.67
5.6.290.0060.00614.29
5.6.280.0030.04717.68
5.6.270.0070.00714.19
5.6.260.0000.01214.55
5.6.250.0050.03517.49
5.6.240.0060.05017.40
5.6.230.0050.04617.41
5.6.220.0120.04117.46
5.6.210.0080.04517.44
5.6.200.0040.05017.74
5.6.190.0030.05017.66
5.6.180.0120.03817.68
5.6.170.0160.03517.88
5.6.160.0080.03817.66
5.6.150.0130.03617.58
5.6.140.0130.03517.71
5.6.130.0030.04917.71
5.6.120.0050.04717.77
5.6.110.0080.04117.72
5.6.100.0070.04017.68
5.6.90.0080.04217.51
5.6.80.0110.04017.22
5.6.70.0100.03817.19
5.6.60.0140.03517.21
5.6.50.0070.04517.31
5.6.40.0050.04517.36
5.6.30.0060.04117.32
5.6.20.0080.04017.28
5.6.10.0050.04717.31
5.6.00.0070.03317.35
5.5.380.0080.04415.75
5.5.370.0070.02615.70
5.5.360.0070.03715.87
5.5.350.0080.04015.63
5.5.340.0080.04015.99
5.5.330.0060.04315.92
5.5.320.0050.04615.89
5.5.310.0060.04515.80
5.5.300.0150.02815.84
5.5.290.0090.03815.86
5.5.280.0070.04216.04
5.5.270.0040.04515.98
5.5.260.0080.04315.88
5.5.250.0030.04815.88
5.5.240.0030.04615.57
5.5.230.0050.02915.54
5.5.220.0120.03815.55
5.5.210.0080.04115.43
5.5.200.0060.04215.67
5.5.190.0100.03715.63
5.5.180.0050.04015.44
5.5.170.0040.01110.96
5.5.160.0050.03815.58
5.5.150.0030.04415.51
5.5.140.0110.03515.44
5.5.130.0050.02515.62
5.5.120.0070.04215.45
5.5.110.0040.04515.54
5.5.100.0070.04215.42
5.5.90.0070.03015.36
5.5.80.0110.03815.43
5.5.70.0050.04415.49
5.5.60.0080.03815.59
5.5.50.0030.04115.54
5.5.40.0070.03715.34
5.5.30.0050.04215.50
5.5.20.0050.04315.48
5.5.10.0030.04215.60
5.5.00.0060.04115.49
5.4.450.0080.02815.26
5.4.440.0050.04715.20
5.4.430.0030.04015.32
5.4.420.0050.04315.12
5.4.410.0050.04015.18
5.4.400.0060.04315.04
5.4.390.0100.03715.01
5.4.380.0030.04615.04
5.4.370.0120.03214.96
5.4.360.0080.03514.94
5.4.350.0050.04014.99
5.4.340.0070.04014.91
5.4.330.0070.00010.61
5.4.320.0070.03815.06
5.4.310.0050.03814.96
5.4.300.0040.04114.97
5.4.290.0100.03814.98
5.4.280.0050.04114.98
5.4.270.0100.03814.80
5.4.260.0080.04215.13
5.4.250.0070.02515.02
5.4.240.0080.03515.05
5.4.230.0070.04014.95
5.4.220.0050.04015.11
5.4.210.0070.04015.13
5.4.200.0060.03815.01
5.4.190.0080.03814.96
5.4.180.0050.03514.95
5.4.170.0070.02814.96
5.4.160.0080.03514.88
5.4.150.0150.02514.96
5.4.140.0070.04113.80
5.4.130.0050.02813.54
5.4.120.0130.02813.57
5.4.110.0080.03213.62
5.4.100.0080.03513.61
5.4.90.0040.03913.55
5.4.80.0040.03913.61
5.4.70.0030.04313.64
5.4.60.0030.03313.74
5.4.50.0030.02313.52
5.4.40.0080.03113.65
5.4.30.0060.04013.75
5.4.20.0020.02813.58
5.4.10.0020.02713.73
5.4.00.0050.02213.46
5.3.290.0050.03012.49
5.3.280.0050.03512.40
5.3.270.0080.03812.53
5.3.260.0050.04212.56
5.3.250.0100.03712.60
5.3.240.0100.03512.48
5.3.230.0100.03512.46
5.3.220.0070.03912.37
5.3.210.0070.02612.36
5.3.200.0060.03712.37
5.3.190.0020.04012.46
5.3.180.0040.04012.50
5.3.170.0000.04512.37
5.3.160.0080.03612.46
5.3.150.0050.04112.53
5.3.140.0020.04412.52
5.3.130.0050.03812.50
5.3.120.0050.04212.47
5.3.110.0050.02012.33
5.3.100.0030.02312.24
5.3.90.0050.02212.18
5.3.80.0050.01812.07
5.3.70.0050.02312.18
5.3.60.0040.02512.23
5.3.50.0050.02011.99
5.3.40.0020.02612.10
5.3.30.0030.02512.12
5.3.20.0060.01311.99
5.3.10.0010.02011.91
5.3.00.0000.03111.93
5.2.170.0070.01510.39
5.2.160.0060.01310.39
5.2.150.0030.03710.43
5.2.140.0050.02310.39
5.2.130.0060.01310.39
5.2.120.0030.03110.39
5.2.110.0050.02110.39
5.2.100.0000.02010.39
5.2.90.0000.01810.39
5.2.80.0030.02710.39
5.2.70.0000.02310.39
5.2.60.0050.01710.39
5.2.50.0030.01510.39
5.2.40.0040.01510.39
5.2.30.0030.02710.39
5.2.20.0050.01310.39
5.2.10.0080.01010.39
5.2.00.0020.01610.39
5.1.60.0060.01210.39
5.1.50.0020.01510.39
5.1.40.0030.01510.39
5.1.30.0030.02010.39
5.1.20.0000.02510.39
5.1.10.0000.01610.39
5.1.00.0000.01510.39
5.0.50.0030.01810.39
5.0.40.0020.01110.39
5.0.30.0020.01810.39
5.0.20.0020.01110.39
5.0.10.0020.01210.39
5.0.00.0020.01810.39
4.4.90.0020.01510.39
4.4.80.0020.01310.39
4.4.70.0000.01110.39
4.4.60.0010.01010.39
4.4.50.0020.00810.39
4.4.40.0010.01810.39
4.4.30.0020.01310.39
4.4.20.0030.00710.39
4.4.10.0050.00510.39
4.4.00.0030.01610.39
4.3.110.0030.00710.39
4.3.100.0040.00710.39
4.3.90.0000.00910.39
4.3.80.0040.01210.39
4.3.70.0000.01010.39
4.3.60.0020.01710.39
4.3.50.0020.01010.39
4.3.40.0030.01110.39
4.3.30.0020.01010.39
4.3.20.0030.00810.39
4.3.10.0050.00510.39
4.3.00.0010.01310.39

preferences:
42.64 ms | 401 KiB | 5 Q