3v4l.org

run code in 300+ PHP versions simultaneously
<?php $foo = new \StdClass; $bar = new \StdClass; $foo->bar = $bar; $bar->foo = $foo; $array = array('foo' => $foo, 'bar' => $bar); $hash = array(); rwalk($array); function rwalk($array) { if (is_array($array)) { foreach ($array as $key => $value) { if (is_object($value)) { $value = (array) $value; $objHash = spl_object_hash($value); } if (is_array($value) && !in_array($objHash, $hash)) { $hash[] = $objHash; rwalk($value); } } } }

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.0140.00418.68
8.3.50.0140.00621.93
8.3.40.0040.01118.76
8.3.30.0100.00719.17
8.3.20.0000.00720.27
8.3.10.0050.00322.11
8.3.00.0080.00022.43
8.2.180.0070.01416.50
8.2.170.0130.00622.96
8.2.160.0070.00720.39
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0050.00326.16
8.2.120.0080.00017.63
8.2.110.0100.00019.89
8.2.100.0110.00017.91
8.2.90.0050.00319.33
8.2.80.0000.00817.97
8.2.70.0040.00417.63
8.2.60.0060.00317.93
8.2.50.0030.00618.07
8.2.40.0040.00418.34
8.2.30.0040.00418.15
8.2.20.0080.00017.84
8.2.10.0030.00517.85
8.2.00.0070.00017.86
8.1.280.0090.00925.92
8.1.270.0070.01122.19
8.1.260.0080.00026.35
8.1.250.0070.00028.09
8.1.240.0030.00621.96
8.1.230.0080.00322.82
8.1.220.0000.00818.42
8.1.210.0000.00818.77
8.1.200.0060.00317.35
8.1.190.0000.00817.35
8.1.180.0060.00318.10
8.1.170.0000.00818.57
8.1.160.0000.00822.02
8.1.150.0040.00418.55
8.1.140.0040.00417.37
8.1.130.0000.00817.79
8.1.120.0040.00417.50
8.1.110.0070.00017.46
8.1.100.0000.00717.48
8.1.90.0070.00017.48
8.1.80.0000.00717.41
8.1.70.0030.00317.34
8.1.60.0060.00317.56
8.1.50.0030.00617.53
8.1.40.0050.00317.38
8.1.30.0030.00617.66
8.1.20.0020.00517.65
8.1.10.0080.00017.59
8.1.00.0030.00617.54
8.0.300.0000.00818.77
8.0.290.0080.00016.75
8.0.280.0000.00718.50
8.0.270.0050.00217.26
8.0.260.0030.00316.91
8.0.250.0020.00516.99
8.0.240.0070.00017.07
8.0.230.0080.00016.93
8.0.220.0030.00316.96
8.0.210.0000.00716.96
8.0.200.0030.00317.06
8.0.190.0000.00716.99
8.0.180.0000.00916.95
8.0.170.0040.00417.02
8.0.160.0000.00716.96
8.0.150.0030.00317.03
8.0.140.0040.00416.91
8.0.130.0030.00313.46
8.0.120.0040.00416.92
8.0.110.0030.00516.89
8.0.100.0040.00417.02
8.0.90.0040.00416.84
8.0.80.0030.01217.00
8.0.70.0040.00416.77
8.0.60.0030.00616.81
8.0.50.0040.00417.05
8.0.30.0140.00517.04
8.0.20.0050.01217.40
8.0.10.0040.00417.14
8.0.00.0190.01616.73
7.4.330.0030.00315.14
7.4.320.0030.00316.48
7.4.300.0030.00316.53
7.4.290.0030.00616.64
7.4.280.0000.00716.43
7.4.270.0030.00616.78
7.4.260.0000.00716.56
7.4.250.0080.00016.47
7.4.240.0030.00516.62
7.4.230.0040.00416.80
7.4.220.0070.01516.63
7.4.210.0080.01216.66
7.4.200.0050.00316.69
7.4.190.0000.00716.41
7.4.160.0300.02516.92
7.4.150.0100.01717.40
7.4.140.0270.01717.86
7.4.130.0180.00816.54
7.4.120.0360.00916.78
7.4.110.0320.02016.86
7.4.100.0100.01316.59
7.4.90.0900.02016.63
7.4.80.0640.01519.39
7.4.70.0090.00916.53
7.4.60.0070.01316.64
7.4.50.0050.00016.60
7.4.40.0060.00922.77
7.4.30.0260.01416.73
7.4.00.0070.00715.14
7.3.330.0040.00813.73
7.3.320.0000.00613.73
7.3.310.0070.00316.74
7.3.300.0070.00016.43
7.3.290.0090.01216.50
7.3.280.0090.01116.43
7.3.270.0400.01117.40
7.3.260.0120.01616.56
7.3.250.0380.00616.71
7.3.240.0090.01316.54
7.3.230.0240.02016.64
7.3.210.0580.01216.68
7.3.200.0130.00919.39
7.3.190.0220.01816.59
7.3.180.0670.03416.57
7.3.170.0620.02516.65
7.3.160.0190.02016.48
7.3.120.0040.01114.86
7.2.330.0640.02816.98
7.2.320.0570.02516.80
7.2.310.0300.01516.88
7.2.300.0220.00617.11
7.2.290.0140.00816.83
7.2.60.0040.01416.57
7.2.00.0030.01019.52
7.1.200.0140.00515.54
7.1.70.0100.00717.10
7.1.60.0090.00317.05
7.1.50.0040.00817.26
7.1.00.0030.07722.20
7.0.200.0000.01516.72
7.0.140.0030.07722.07
7.0.60.0100.03720.15
7.0.50.0130.07718.14
7.0.40.0100.07319.86
7.0.30.0230.06319.72
7.0.20.0100.04719.80
7.0.10.0070.07019.81
7.0.00.0070.06019.72
5.6.280.0000.07721.20
5.6.210.0070.04321.16
5.6.200.0270.03718.89
5.6.190.0100.05020.84
5.6.180.0270.08021.11
5.6.170.0270.06720.71
5.6.160.0070.08720.48
5.6.150.0000.06318.49
5.6.140.0030.06018.45
5.6.130.0070.04318.82
5.6.120.0130.05321.20
5.6.110.0170.08021.29
5.6.100.0130.08021.28
5.6.90.0100.07721.58
5.6.80.0030.06720.79
5.5.350.0170.05720.80
5.5.340.0100.03318.39
5.5.330.0200.05721.54
5.5.320.0230.06721.66
5.5.310.0230.05320.64
5.5.300.0030.04318.43
5.5.290.0100.06321.57
5.5.280.0200.07321.63
5.5.270.0100.08321.14
5.5.260.0070.07321.53
5.5.250.0100.08721.41
5.5.240.0170.06020.93
5.4.450.0100.07719.92
5.4.440.0200.07019.57
5.4.430.0070.06319.88
5.4.420.0200.07720.10
5.4.410.0030.06019.63
5.4.400.0100.06019.57
5.4.390.0170.08019.73
5.4.380.0100.05719.79
5.4.370.0500.05019.25
5.4.360.0070.06019.34
5.4.350.0200.05319.77
5.4.340.0130.06019.65
5.4.320.0130.06019.37
5.4.310.0230.07019.74
5.4.300.0270.07019.64
5.4.290.0200.05019.25
5.4.280.0130.05719.90
5.4.270.0100.07319.50
5.4.260.0200.06319.73
5.4.250.0130.07719.50
5.4.240.0270.06319.30
5.4.230.0170.07019.30
5.4.220.0230.05319.72
5.4.210.0030.06319.59
5.4.200.0130.05019.65
5.4.190.0200.04719.90
5.4.180.0100.05719.58
5.4.170.0130.04719.44
5.4.160.0170.04719.68
5.4.150.0170.05319.27
5.4.140.0070.05717.28
5.4.130.0070.05316.70
5.4.120.0200.04317.14
5.4.110.0070.05316.80
5.4.100.0100.05317.09
5.4.90.0100.05317.14
5.4.80.0270.05017.17
5.4.70.0370.04017.10
5.4.60.0070.05316.72
5.4.50.0100.05017.14
5.4.40.0170.04717.09
5.4.30.0070.06317.05
5.4.20.0500.05016.89
5.4.10.0170.04716.89
5.4.00.0130.05016.11
5.3.290.0170.06715.09
5.3.280.0170.06015.23
5.3.270.0130.05315.14
5.3.260.0100.06015.29
5.3.250.0130.04715.04
5.3.240.0030.06015.29
5.3.230.0130.05315.13
5.3.220.0170.05015.32
5.3.210.0100.06015.25
5.3.200.0000.06015.29
5.3.190.0170.05015.34
5.3.180.0470.05714.85
5.3.170.0170.07715.23
5.3.160.0670.04014.68
5.3.150.0200.06715.19
5.3.140.0130.04714.92
5.3.130.0200.05014.88
5.3.120.0130.05715.07
5.3.110.0730.05715.09
5.3.100.0070.05714.27
5.3.90.0130.04714.60
5.3.80.0170.04714.59
5.3.70.0230.05714.61
5.3.60.0100.05314.61
5.3.50.0200.04314.14
5.3.40.0130.05314.57
5.3.30.0100.05014.48
5.3.20.0130.04314.16
5.3.10.0130.07714.13
5.3.00.0430.05314.19
5.2.170.0370.03711.25
5.2.160.0300.04711.93
5.2.150.0400.05012.09
5.2.140.0470.04711.78
5.2.130.0330.04712.01
5.2.120.0600.05311.95
5.2.110.0630.04711.96
5.2.100.0500.05311.33
5.2.90.0500.04312.01
5.2.80.0500.03711.98
5.2.70.0470.05711.86
5.2.60.0400.04311.89
5.2.50.0400.04711.76
5.2.40.0300.05711.86
5.2.30.0530.04711.52
5.2.20.0230.05711.78
5.2.10.0100.04311.64
5.2.00.0430.04011.65
5.1.60.0300.03310.56
5.1.50.0300.03710.56
5.1.40.0300.03710.56
5.1.30.0300.04010.56
5.1.20.0300.03710.56
5.1.10.0230.04710.56
5.1.00.0300.04010.56
5.0.50.0130.03710.56
5.0.40.0170.02710.56
5.0.30.0200.04010.56
5.0.20.0200.02710.56
5.0.10.0270.02310.56
5.0.00.0200.05310.56
4.4.90.0200.02310.56
4.4.80.0230.02710.56
4.4.70.0200.01710.56
4.4.60.0300.01710.56
4.4.50.0200.02010.56
4.4.40.0200.04010.56
4.4.30.0270.02710.56
4.4.20.0130.03010.56
4.4.10.0100.02710.56
4.4.00.0130.03710.56
4.3.110.0070.03310.56
4.3.100.0200.03010.56
4.3.90.0230.02010.56
4.3.80.0230.02710.56
4.3.70.0200.01710.56
4.3.60.0170.02310.56
4.3.50.0200.02710.56
4.3.40.0170.03310.56
4.3.30.0130.02010.56
4.3.20.0070.02710.56
4.3.10.0070.02310.56
4.3.00.0030.02710.56

preferences:
56.69 ms | 401 KiB | 5 Q