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)) { $objHash = spl_object_hash($value); $value = (array) $value; } if (is_array($value) && !in_array($objHash, $hash)) { $hash[] = $objHash; //rwalk($value); } else echo "REC"; } } }

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.0040.01118.39
8.3.50.0110.00622.05
8.3.40.0140.00018.80
8.3.30.0060.00919.21
8.3.20.0050.00320.21
8.3.10.0120.00622.14
8.3.00.0040.00422.37
8.2.180.0120.00316.63
8.2.170.0120.00922.96
8.2.160.0130.00420.47
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0060.01220.96
8.2.110.0070.00322.32
8.2.100.0040.00817.91
8.2.90.0080.00017.91
8.2.80.0000.00817.97
8.2.70.0030.00617.63
8.2.60.0030.00517.93
8.2.50.0040.00418.07
8.2.40.0050.00318.03
8.2.30.0000.00718.21
8.2.20.0000.00817.86
8.2.10.0080.00017.90
8.2.00.0040.00417.81
8.1.280.0000.01525.92
8.1.270.0040.00422.06
8.1.260.0000.00926.35
8.1.250.0040.00428.09
8.1.240.0090.00620.55
8.1.230.0070.00421.04
8.1.220.0000.00817.79
8.1.210.0000.00818.77
8.1.200.0030.00717.36
8.1.190.0050.00317.51
8.1.180.0040.00418.10
8.1.170.0040.00418.67
8.1.160.0000.00721.99
8.1.150.0000.00818.64
8.1.140.0000.00717.45
8.1.130.0030.00317.85
8.1.120.0070.00017.45
8.1.110.0080.00017.47
8.1.100.0030.00517.45
8.1.90.0050.00217.41
8.1.80.0070.00017.52
8.1.70.0070.00017.43
8.1.60.0040.00417.59
8.1.50.0000.00817.49
8.1.40.0050.00317.55
8.1.30.0000.00817.59
8.1.20.0040.00417.60
8.1.10.0030.00617.57
8.1.00.0080.00017.57
8.0.300.0000.00719.89
8.0.290.0080.00017.05
8.0.280.0050.00218.50
8.0.270.0030.00317.19
8.0.260.0030.00316.82
8.0.250.0040.00416.95
8.0.240.0070.00017.00
8.0.230.0030.00316.99
8.0.220.0030.00316.91
8.0.210.0000.00716.97
8.0.200.0070.00017.03
8.0.190.0000.00717.07
8.0.180.0040.00416.97
8.0.170.0040.00417.03
8.0.160.0000.00817.03
8.0.150.0030.00316.90
8.0.140.0040.00416.98
8.0.130.0000.00513.36
8.0.120.0050.00316.96
8.0.110.0000.00716.91
8.0.100.0000.00716.86
8.0.90.0040.00417.02
8.0.80.0130.00317.02
8.0.70.0040.00417.04
8.0.60.0020.00517.04
8.0.50.0020.00517.00
8.0.30.0090.01116.95
8.0.20.0140.00617.42
8.0.10.0040.00417.06
8.0.00.0090.00816.72
7.4.330.0050.00015.14
7.4.320.0000.00716.47
7.4.300.0030.00316.58
7.4.290.0000.00716.52
7.4.280.0030.00316.61
7.4.270.0040.00416.49
7.4.260.0040.00416.64
7.4.250.0000.00716.60
7.4.240.0020.00616.60
7.4.230.0070.00016.41
7.4.220.0070.01116.49
7.4.210.0040.01116.52
7.4.200.0000.00716.69
7.4.190.0000.00716.49
7.4.160.0070.01016.45
7.4.150.0100.00717.40
7.4.140.0120.00617.86
7.4.130.0100.00616.56
7.4.120.0090.00916.52
7.4.110.0100.00716.61
7.4.100.0120.01216.71
7.4.90.0090.00916.56
7.4.80.0070.01119.39
7.4.70.0180.00416.43
7.4.60.0030.01416.55
7.4.50.0040.00016.29
7.4.40.0060.00622.77
7.4.30.0060.01016.48
7.4.00.0070.00715.03
7.3.330.0040.00413.39
7.3.320.0000.00613.20
7.3.310.0030.00316.33
7.3.300.0000.00716.48
7.3.290.0080.00816.47
7.3.280.0150.00516.40
7.3.270.0070.01017.40
7.3.260.0070.01016.45
7.3.250.0060.01116.38
7.3.240.0110.00616.41
7.3.230.0100.00616.63
7.3.210.0090.00916.50
7.3.200.0190.00319.39
7.3.190.0080.01116.46
7.3.180.0060.00916.40
7.3.170.0090.00716.61
7.3.160.0060.00916.61
7.3.120.0070.00714.93
7.2.330.0130.00316.68
7.2.320.0100.01016.58
7.2.310.0120.00616.75
7.2.300.0040.01516.45
7.2.290.0060.00916.54
7.2.00.0390.00019.02
7.1.100.0070.00718.19
7.1.70.0040.00716.82
7.1.60.0000.02319.82
7.1.50.0070.01416.79
7.1.00.0030.07722.57
7.0.200.0090.00016.71
7.0.140.0030.06721.91
7.0.60.0230.07020.00
7.0.50.0030.08717.88
7.0.40.0070.04020.21
7.0.30.0230.07320.26
7.0.20.0100.05020.19
7.0.10.0030.05020.09
7.0.00.0100.08320.05
5.6.280.0070.07020.86
5.6.210.0070.07720.52
5.6.200.0030.07018.19
5.6.190.0030.07320.43
5.6.180.0370.05320.46
5.6.170.0300.05020.57
5.6.160.0030.09020.61
5.6.150.0100.07718.27
5.6.140.0100.03318.18
5.6.130.0100.08318.10
5.6.120.0170.08021.00
5.6.110.0170.08021.00
5.6.100.0170.06320.98
5.6.90.0070.06720.98
5.6.80.0030.04020.38
5.5.350.0470.06020.44
5.5.340.0100.08017.94
5.5.330.0030.04020.27
5.5.320.0030.04720.35
5.5.310.0300.07320.51
5.5.300.0070.03717.95
5.5.290.0070.07017.95
5.5.280.0000.08020.85
5.5.270.0030.08720.75
5.5.260.0100.08020.97
5.5.250.0030.07320.75
5.5.240.0000.05020.27
5.4.450.0700.06019.31
5.4.440.0070.06719.61
5.4.430.0130.05319.36
5.4.420.0130.05319.54
5.4.410.0130.05019.31
5.4.400.0870.00018.65
5.4.390.0770.00018.73
5.4.380.0200.05718.76
5.4.370.0270.04318.50
5.4.360.0370.03718.74
5.4.350.0170.05318.76
5.4.340.0270.04318.57
5.4.320.0080.03512.50
5.4.310.0070.04312.50
5.4.300.0050.03712.51
5.4.290.0080.03612.50
5.4.280.0100.03812.39
5.4.270.0130.07318.95
5.4.260.0230.04718.75
5.4.250.0070.05718.95
5.4.240.0100.05718.99
5.4.230.0100.05319.00
5.4.220.0100.06318.96
5.4.210.0200.07318.96
5.4.200.0170.04718.95
5.4.190.0230.04319.04
5.4.180.0030.05718.96
5.4.170.0330.05018.94
5.4.160.0000.07318.64
5.4.150.0100.08318.82
5.4.140.0170.04716.60
5.4.130.0030.07716.58
5.4.120.0130.06316.39
5.4.110.0130.06716.55
5.4.100.0100.04716.65
5.4.90.0100.07016.35
5.4.80.0070.05016.30
5.4.70.0000.06316.43
5.4.60.0130.06316.30
5.4.50.0130.06716.40
5.4.40.0070.05316.45
5.4.30.0170.05716.32
5.4.20.0070.07316.29
5.4.10.0170.04316.52
5.4.00.0100.05015.80
5.3.290.0080.04112.80
5.3.280.0070.05714.81
5.3.270.0170.04314.79
5.3.260.0200.05314.63
5.3.250.0070.07714.58
5.3.240.0100.04714.68
5.3.230.0070.07014.62
5.3.220.0030.05714.57
5.3.210.0100.06314.59
5.3.200.0170.04014.63
5.3.190.0130.07014.65
5.3.180.0070.05314.79
5.3.170.0000.06714.57
5.3.160.0100.06714.75
5.3.150.0070.06314.63
5.3.140.0170.06014.55
5.3.130.0230.06014.45
5.3.120.0270.06714.69
5.3.110.0170.07014.71
5.3.100.0100.05014.11
5.3.90.0070.06014.00
5.3.80.0070.05714.01
5.3.70.0300.05713.92
5.3.60.0100.06314.09
5.3.50.0170.05313.78
5.3.40.0130.06313.97
5.3.30.0030.05013.98
5.3.20.0000.05313.73
5.3.10.0200.05313.62
5.3.00.0130.07013.63
5.2.170.0030.04711.21
5.2.160.0000.04711.12
5.2.150.0130.05311.10
5.2.140.0130.05011.14
5.2.130.0030.05011.05
5.2.120.0030.04311.32
5.2.110.0000.04311.07
5.2.100.0100.05311.19
5.2.90.0070.03710.93
5.2.80.0100.05311.12
5.2.70.0030.06010.99
5.2.60.0100.03711.14
5.2.50.0100.04011.10
5.2.40.0030.05710.90
5.2.30.0070.05710.96
5.2.20.0000.04311.04
5.2.10.0100.05311.08
5.2.00.0000.04310.89
5.1.60.0030.04710.04
5.1.50.0100.02710.05
5.1.40.0130.04710.14
5.1.30.0030.04710.30
5.1.20.0100.04310.26
5.1.10.0130.02710.08
5.1.00.0100.03710.31
5.0.50.0070.0278.47
5.0.40.0030.0378.50
5.0.30.0030.0478.14
5.0.20.0100.0308.11
5.0.10.0070.0408.09
5.0.00.0000.0578.13
4.4.90.0000.0336.48
4.4.80.0030.0206.48
4.4.70.0070.0306.48
4.4.60.0070.0206.48
4.4.50.0000.0276.48
4.4.40.0100.0306.48
4.4.30.0000.0306.48
4.4.20.0000.0276.48
4.4.10.0030.0206.48
4.4.00.0000.0406.48
4.3.110.0100.0276.48
4.3.100.0030.0276.48
4.3.90.0000.0306.48
4.3.80.0070.0306.48
4.3.70.0070.0176.48
4.3.60.0000.0236.48
4.3.50.0070.0276.48
4.3.40.0000.0336.48
4.3.30.0000.0236.48
4.3.20.0000.0236.48
4.3.10.0030.0276.48
4.3.00.0100.0277.18

preferences:
36.44 ms | 401 KiB | 5 Q