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); } } } }

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.0160.00618.68
8.3.50.0070.00922.05
8.3.40.0150.00618.92
8.3.30.0080.00819.07
8.3.20.0000.00720.34
8.3.10.0000.00821.96
8.3.00.0040.00422.45
8.2.180.0150.00616.88
8.2.170.0130.00322.96
8.2.160.0070.00720.53
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0060.00319.48
8.2.110.0060.00322.25
8.2.100.0030.00918.03
8.2.90.0000.00819.35
8.2.80.0000.00817.97
8.2.70.0030.00617.75
8.2.60.0080.00017.93
8.2.50.0050.00318.07
8.2.40.0090.00018.22
8.2.30.0050.00218.20
8.2.20.0020.00517.66
8.2.10.0000.00717.70
8.2.00.0040.00417.88
8.1.280.0070.01425.92
8.1.270.0080.00022.05
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0070.00323.63
8.1.230.0060.00619.15
8.1.220.0050.00317.78
8.1.210.0000.00818.77
8.1.200.0030.00617.35
8.1.190.0040.00417.40
8.1.180.0000.00718.10
8.1.170.0030.00518.62
8.1.160.0000.00721.89
8.1.150.0000.00718.65
8.1.140.0040.00417.45
8.1.130.0030.00317.87
8.1.120.0050.00217.45
8.1.110.0040.00417.47
8.1.100.0070.00017.52
8.1.90.0070.00017.53
8.1.80.0030.00417.37
8.1.70.0000.00717.48
8.1.60.0050.00317.48
8.1.50.0080.00017.51
8.1.40.0040.00417.43
8.1.30.0000.00817.59
8.1.20.0000.00817.50
8.1.10.0040.00417.50
8.1.00.0040.00417.48
8.0.300.0070.00018.77
8.0.290.0070.00017.05
8.0.280.0030.00318.47
8.0.270.0030.00516.82
8.0.260.0040.00416.88
8.0.250.0030.00317.02
8.0.240.0040.00416.86
8.0.230.0030.00616.93
8.0.220.0040.00416.96
8.0.210.0000.00716.92
8.0.200.0000.00817.04
8.0.190.0050.00316.91
8.0.180.0050.00516.97
8.0.170.0040.00417.03
8.0.160.0040.00416.88
8.0.150.0070.00016.93
8.0.140.0050.00316.98
8.0.130.0030.00313.36
8.0.120.0080.00016.83
8.0.110.0040.00416.94
8.0.100.0040.00416.79
8.0.90.0040.00416.93
8.0.80.0030.01316.88
8.0.70.0040.00416.96
8.0.60.0000.00716.98
8.0.50.0050.00316.84
8.0.30.0100.01217.00
8.0.20.0110.00817.40
8.0.10.0000.00717.21
8.0.00.0120.01116.81
7.4.330.0040.00215.08
7.4.320.0070.00016.91
7.4.300.0000.00817.04
7.4.290.0060.00316.85
7.4.280.0060.00316.99
7.4.270.0000.00716.75
7.4.260.0050.00716.92
7.4.250.0000.00816.62
7.4.240.0050.00516.89
7.4.230.0000.00817.10
7.4.220.0160.01017.00
7.4.210.0070.01516.87
7.4.200.0060.00317.11
7.4.190.0080.00016.95
7.4.160.0170.01017.13
7.4.150.0440.00917.40
7.4.140.0260.01717.86
7.4.130.0150.01316.96
7.4.120.0290.01416.84
7.4.110.0640.05017.10
7.4.100.0120.01216.85
7.4.90.0110.01416.95
7.4.80.0110.01119.39
7.4.70.0090.00916.70
7.4.60.0080.01116.83
7.4.50.0080.00316.80
7.4.40.0000.01622.77
7.4.30.0700.01517.18
7.4.00.0000.01915.48
7.3.330.0090.00013.82
7.3.320.0030.00313.63
7.3.310.0090.00016.73
7.3.300.0030.00316.52
7.3.290.0150.01116.99
7.3.280.0110.00916.67
7.3.270.0550.02217.40
7.3.260.0130.01317.15
7.3.250.0240.01817.07
7.3.240.0120.00916.59
7.3.230.0350.01016.91
7.3.210.0070.01416.57
7.3.200.0310.00816.87
7.3.190.0170.02416.94
7.3.180.0180.00616.97
7.3.170.0430.02817.12
7.3.160.0250.01116.91
7.3.120.0090.01415.55
7.2.330.0090.01417.17
7.2.320.0140.01416.99
7.2.310.0400.02017.39
7.2.300.0330.01117.30
7.2.290.0440.01017.20
7.2.60.0130.00716.51
7.2.00.0030.01019.39
7.1.200.0030.01415.88
7.1.100.0000.01218.16
7.1.70.0090.00317.09
7.1.60.0060.00919.82
7.1.50.0070.01317.27
7.1.00.0030.07722.24
7.0.200.0070.00316.89
7.0.140.0030.07721.96
7.0.60.0000.08320.25
7.0.50.0170.07318.40
7.0.40.0070.06019.96
7.0.30.0370.07319.97
7.0.20.0130.04319.97
7.0.10.0100.08319.91
7.0.00.0070.06719.88
5.6.280.0070.07021.63
5.6.210.0070.08321.73
5.6.200.0170.08018.95
5.6.190.0100.04020.97
5.6.180.0470.07021.04
5.6.170.0330.05720.90
5.6.160.0130.06721.53
5.6.150.0070.07719.16
5.6.140.0000.04319.36
5.6.130.0030.04318.61
5.6.120.0000.04721.94
5.6.110.0030.09022.22
5.6.100.0130.04021.67
5.6.90.0130.08022.24
5.6.80.0130.05021.21
5.5.350.0070.08021.35
5.5.340.0130.08022.20
5.5.330.0230.06020.62
5.5.320.0170.05722.13
5.5.310.0430.07320.71
5.5.300.0030.09318.82
5.5.290.0100.06722.11
5.5.280.0070.09022.14
5.5.270.0200.05321.33
5.5.260.0270.05722.05
5.5.250.0100.03721.25
5.5.240.0030.08020.84
5.4.450.0070.06720.42
5.4.440.0470.05320.31
5.4.430.0330.06020.84
5.4.420.0470.05320.34
5.4.410.0430.05720.55
5.4.400.0500.04720.05
5.4.390.0200.08020.29
5.4.380.0100.05720.07
5.4.370.0330.06019.75
5.4.360.0370.05020.27
5.4.350.0330.05320.46
5.4.340.0170.05720.28
5.4.320.0230.06319.91
5.4.310.0230.05320.20
5.4.300.0100.05720.12
5.4.290.0170.05720.23
5.4.280.0130.06019.95
5.4.270.0070.06720.21
5.4.260.0170.05320.12
5.4.250.0130.06019.72
5.4.240.0130.05320.17
5.4.230.0230.05020.44
5.4.220.0070.06320.34
5.4.210.0230.05020.15
5.4.200.0170.05019.64
5.4.190.0230.05020.20
5.4.180.0330.07020.31
5.4.170.0000.06720.15
5.4.160.0270.04720.24
5.4.150.0170.05720.21
5.4.140.0300.04317.58
5.4.130.0100.06017.51
5.4.120.0170.05317.84
5.4.110.0170.05317.01
5.4.100.0230.04717.72
5.4.90.0300.06317.63
5.4.80.0130.07717.77
5.4.70.0170.06017.72
5.4.60.0130.05717.43
5.4.50.0170.04317.53
5.4.40.0330.03717.62
5.4.30.0100.05717.63
5.4.20.0200.05017.66
5.4.10.0270.04717.46
5.4.00.0100.07017.11
5.3.290.0070.06315.91
5.3.280.0130.06015.96
5.3.270.0200.05715.83
5.3.260.0270.05015.04
5.3.250.0130.06315.06
5.3.240.0300.05315.80
5.3.230.0170.05715.71
5.3.220.0130.06015.79
5.3.210.0200.05315.81
5.3.200.0270.04315.85
5.3.190.0200.05715.66
5.3.180.0230.05015.98
5.3.170.0070.06315.70
5.3.160.0170.05715.69
5.3.150.0200.05315.75
5.3.140.0200.04714.98
5.3.130.0200.05315.67
5.3.120.0100.07015.90
5.3.110.0200.05315.79
5.3.100.0170.05315.29
5.3.90.0200.05315.45
5.3.80.0170.05715.08
5.3.70.0130.05714.77
5.3.60.0130.05715.21
5.3.50.0100.05715.29
5.3.40.0200.05315.38
5.3.30.0170.05014.44
5.3.20.0170.06314.82
5.3.10.0070.06314.82
5.3.00.0230.04714.78
5.2.170.0130.04712.69
5.2.160.0270.03312.91
5.2.150.0130.05012.85
5.2.140.0270.03712.94
5.2.130.0170.04312.68
5.2.120.0230.04312.73
5.2.110.0170.04712.71
5.2.100.0170.04312.40
5.2.90.0000.05711.84
5.2.80.0100.04711.89
5.2.70.0070.05012.77
5.2.60.0400.04012.73
5.2.50.0370.04012.22
5.2.40.0170.05012.40
5.2.30.0230.04311.53
5.2.20.0230.05012.22
5.2.10.0230.04712.11
5.2.00.0230.04311.70
5.1.60.0130.04010.25
5.1.50.0330.02310.25
5.1.40.0170.03710.25
5.1.30.0300.02710.35
5.1.20.0200.04010.41
5.1.10.0270.03310.25
5.1.00.0200.04010.25
5.0.50.0130.03010.25
5.0.40.0130.02710.25
5.0.30.0130.04310.25
5.0.20.0030.02710.25
5.0.10.0000.03010.25
5.0.00.0100.03710.25
4.4.90.0130.02310.25
4.4.80.0170.02310.25
4.4.70.0130.02010.25
4.4.60.0200.01310.25
4.4.50.0130.02310.25
4.4.40.0100.03710.25
4.4.30.0130.02010.25
4.4.20.0070.02710.25
4.4.10.0130.02010.25
4.4.00.0200.02710.25
4.3.110.0100.02310.25
4.3.100.0130.02010.25
4.3.90.0070.02310.25
4.3.80.0000.03310.25
4.3.70.0130.01010.25
4.3.60.0030.02010.25
4.3.50.0070.02010.25
4.3.40.0100.03710.25
4.3.30.0030.03310.25
4.3.20.0130.01710.25
4.3.10.0070.02010.25
4.3.00.0130.01710.25

preferences:
36.57 ms | 401 KiB | 5 Q