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); rwalk($array); function rwalk($array) { if (is_array($array)) { foreach ($array as $key => $value) { if (is_object($value)) { $value = (array) $value; } if (is_array($value)) { 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.0280.01780.61
8.3.50.0540.02774.69
8.3.40.0360.00644.83
8.3.30.0270.01445.25
8.3.20.0160.00746.52
8.3.10.0090.00948.50
8.3.00.0180.00448.56
8.2.180.0660.02672.60
8.2.170.0300.01344.79
8.2.160.0300.01746.35
8.2.150.0170.00744.72
8.2.140.0210.00344.68
8.2.130.0380.01046.38
8.2.120.0190.00644.71
8.2.110.0160.01346.35
8.2.100.0200.01343.91
8.2.90.0200.00343.91
8.2.80.0100.01343.50
8.2.70.0130.01043.75
8.2.60.0170.00743.90
8.2.50.0210.00343.75
8.2.40.0230.00644.22
8.2.30.0130.01344.07
8.2.20.0190.00743.55
8.2.10.0070.01443.66
8.2.00.0210.00643.59
8.1.280.0570.01772.00
8.1.270.0250.00048.26
8.1.260.0200.00049.33
8.1.250.0230.00447.01
8.1.240.0200.01748.40
8.1.230.0310.00347.00
8.1.220.0190.00343.66
8.1.210.0070.01444.89
8.1.200.0240.00743.47
8.1.190.0120.01243.17
8.1.180.0140.01043.35
8.1.170.0130.01044.46
8.1.160.0090.01348.02
8.1.150.0040.01844.54
8.1.140.0110.01143.43
8.1.130.0120.01243.72
8.1.120.0150.00843.49
8.1.110.0130.01043.39
8.1.100.0100.01043.53
8.1.90.0090.01243.53
8.1.80.0030.01643.36
8.1.70.0100.01043.52
8.1.60.0200.01043.66
8.1.50.0070.01543.48
8.1.40.0100.01443.57
8.1.30.0190.00543.55
8.1.20.0140.01143.55
8.1.10.0330.00773.11
8.1.00.0170.02373.17
8.0.300.0200.02075.64
8.0.290.0150.01972.80
8.0.280.0140.02173.95
8.0.270.0300.01072.92
8.0.260.0260.01672.31
8.0.250.0290.01372.49
8.0.240.0380.01072.44
8.0.230.0210.02472.55
8.0.220.0130.02272.32
8.0.210.0100.02372.53
8.0.200.0250.01672.47
8.0.190.0330.01072.48
8.0.180.0240.02472.48
8.0.170.0110.02872.53
8.0.160.0230.01972.36
8.0.150.0210.01772.53
8.0.140.0250.01972.46
8.0.130.0630.020121.76
8.0.120.0210.01772.43
8.0.110.0170.02072.24
8.0.100.0220.01672.48
8.0.90.0160.01972.28
8.0.80.0350.05872.40
8.0.70.0200.02372.30
8.0.60.0350.00672.37
8.0.50.0320.00672.35
8.0.30.0600.03772.57
8.0.20.0620.03672.75
8.0.10.0260.01672.47
8.0.00.0570.04872.30
7.4.330.0060.02272.56
7.4.320.0160.01671.88
7.4.300.0160.02672.10
7.4.290.0200.02771.95
7.4.280.0280.01072.01
7.4.270.0160.02272.05
7.4.260.0230.02371.97
7.4.250.0100.03071.91
7.4.240.0270.01272.05
7.4.230.0260.01072.12
7.4.220.0720.02671.98
7.4.210.0470.03972.04
7.4.200.0190.01672.12
7.4.190.0240.01471.96
7.4.160.0490.03672.10
7.4.150.0560.03672.01
7.4.140.0720.03772.04
7.4.130.0670.03172.10
7.4.120.0560.03672.12
7.4.110.0410.05172.21
7.4.100.0620.05872.01
7.4.90.0750.02371.91
7.4.80.0810.05372.02
7.4.70.0460.04672.04
7.4.60.0560.05371.95
7.4.50.0170.01072.08
7.4.40.0270.03072.00
7.4.30.0700.02372.02
7.4.00.0390.03270.53
7.3.330.0710.036121.79
7.3.320.0350.035121.76
7.3.310.0180.02171.90
7.3.300.0230.01371.68
7.3.290.0680.03171.79
7.3.280.0540.04071.88
7.3.270.0700.06772.25
7.3.260.0630.03671.84
7.3.250.0660.03371.86
7.3.240.0670.04471.86
7.3.230.0500.04371.92
7.3.210.0640.03071.79
7.3.200.0490.05971.82
7.3.190.0630.02771.75
7.3.180.0600.03072.19
7.3.170.0390.05672.07
7.3.160.0460.05371.99
7.3.120.0360.02870.54
7.3.110.0170.04370.40
7.3.100.0470.03070.45
7.3.90.0410.02770.45
7.3.80.0240.03770.27
7.3.70.0240.03070.37
7.3.60.0430.02370.34
7.3.50.0420.01670.56
7.3.40.0170.04070.04
7.3.30.0270.02770.38
7.3.20.0130.02778.71
7.3.10.0400.03578.57
7.3.00.0760.02578.44
7.2.330.0440.05472.23
7.2.320.0530.04372.14
7.2.310.0580.03972.27
7.2.300.0700.04071.97
7.2.290.0570.04172.45
7.2.250.0260.04370.78
7.2.240.0440.04470.78
7.2.230.0300.03070.50
7.2.220.0210.05570.52
7.2.210.0340.02770.91
7.2.200.0130.04270.54
7.2.190.0290.03270.59
7.2.180.0270.02770.61
7.2.170.0260.04070.66
7.2.130.0640.02878.87
7.2.120.2880.03678.76
7.2.110.2710.02678.69
7.2.100.2820.03378.69
7.2.90.1390.03678.85
7.2.80.1490.02678.99
7.2.70.1090.03778.31
7.2.60.1690.03378.61
7.2.50.1590.03178.82
7.2.40.0720.03678.76
7.2.30.1050.02978.96
7.2.20.1630.04878.60
7.2.10.1240.02778.96
7.2.00.1470.03480.13
7.1.330.0130.03777.80
7.1.320.0200.03077.89
7.1.310.0100.04778.00
7.1.300.0210.03177.79
7.1.290.0200.03077.88
7.1.280.0300.02077.87
7.1.270.0190.03177.57
7.1.260.0130.04077.83
7.1.250.1100.04177.82
7.1.200.1110.01377.58
7.1.100.2120.01029.92
7.1.70.1410.02478.98
7.1.60.0230.03679.13
7.1.50.0420.02978.83
7.1.00.0100.09384.35
7.0.201.2570.02777.33
7.0.140.0100.09084.07
7.0.81.0300.05375.50
7.0.71.0770.09775.59
7.0.60.9400.07375.60
7.0.51.0470.05375.98
7.0.40.0200.05020.11
7.0.30.0170.09020.13
7.0.20.0000.10020.18
7.0.10.0170.10019.94
7.0.00.0130.10720.03
5.6.280.0270.12086.09
5.6.230.0200.08085.65
5.6.220.0300.12085.55
5.6.210.0370.11785.73
5.6.200.0270.12786.01
5.6.190.0100.08785.98
5.6.180.0230.13786.00
5.6.170.0330.12785.93
5.6.160.0330.12386.10
5.6.150.0200.08786.07
5.6.140.0300.08085.90
5.6.130.0270.14786.02
5.6.120.0230.11786.00
5.6.110.0370.13785.89
5.6.100.0370.13386.00
5.6.90.0170.08385.88
5.6.80.0270.07785.41
5.6.70.0300.08085.44
5.6.60.0200.08085.51
5.6.50.0130.11085.43
5.6.40.0270.14385.43
5.6.30.0400.06785.33
5.6.20.0200.13785.33
5.6.10.0300.08785.39
5.6.00.0330.11085.33
5.5.370.0470.12385.51
5.5.360.0500.11085.41
5.5.350.0270.13785.35
5.5.340.0170.07785.69
5.5.330.0270.11085.61
5.5.320.0470.11085.77
5.5.310.0370.08785.84
5.5.300.0300.10785.61
5.5.290.0430.13085.70
5.5.280.0270.10085.82
5.5.270.0470.13385.87
5.5.260.0400.12785.79
5.5.250.0300.09785.63
5.5.240.0170.09085.27
5.5.230.0400.12385.16
5.5.220.0370.10385.07
5.5.210.0170.08385.26
5.5.200.0400.11785.08
5.5.190.0430.10385.21
5.5.180.0330.13785.23
5.5.160.0370.10385.19
5.5.150.0270.07785.21
5.5.140.0200.09784.95
5.5.130.0230.14085.22
5.5.120.0170.16085.12
5.5.110.0300.12785.08
5.5.100.0330.13385.08
5.5.90.0100.11785.07
5.5.80.0630.09784.93
5.5.70.0230.13785.03
5.5.60.0200.08085.08
5.5.50.0400.08785.13
5.5.40.0470.10384.88
5.5.30.0330.11785.04
5.5.20.0300.07385.06
5.5.10.0370.12785.07
5.5.00.0430.13385.07
5.4.450.0300.12384.12
5.4.440.0330.11084.28
5.4.430.0330.13784.40
5.4.420.0170.09784.23
5.4.410.0300.07084.06
5.4.400.0400.12784.00
5.4.390.0230.08784.01
5.4.380.0430.12783.93
5.4.370.0130.08783.95
5.4.360.0300.13384.05
5.4.350.0470.11784.00
5.4.340.0270.10383.89
5.4.320.0300.08383.85
5.4.310.0470.11383.79
5.4.300.0330.08384.01
5.4.290.0200.08383.79
5.4.280.0170.13384.01
5.4.270.0100.10383.92
5.4.260.0230.07783.78
5.4.250.0230.08783.94
5.4.240.0270.11384.10
5.4.230.0330.10383.84
5.4.220.0330.13783.77
5.4.210.0270.11083.91
5.4.200.0230.13084.10
5.4.190.0170.08783.76
5.4.180.0200.07783.94
5.4.170.0300.07783.92
5.4.160.0130.09083.84
5.4.150.0370.11783.99
5.4.140.0130.13781.38
5.4.130.0330.11781.28
5.4.120.0130.08781.34
5.4.110.0370.11781.38
5.4.100.0400.11381.32
5.4.90.0230.07781.42
5.4.80.0200.10381.24
5.4.70.0430.12781.43
5.4.60.0330.08081.42
5.4.50.0230.11381.23
5.4.40.0230.12081.30
5.4.30.0300.06781.27
5.4.20.0200.12381.38
5.4.10.0130.10081.36
5.4.00.0200.07780.73
5.3.290.0270.09078.53
5.3.280.0430.12778.38
5.3.270.0370.11378.46
5.3.260.0330.14378.33
5.3.250.0200.09078.38
5.3.240.0370.12078.43
5.3.230.0270.15078.28
5.3.220.0230.09378.35
5.3.210.0330.10778.31
5.3.200.0100.13078.48
5.3.190.0030.10778.34
5.3.180.0270.13778.26
5.3.170.0270.08078.26
5.3.160.0170.13378.30
5.3.150.0330.14078.41
5.3.140.0230.13378.29
5.3.130.0230.14078.38
5.3.120.0230.08378.40
5.3.110.0400.09378.29
5.3.100.0300.07777.89
5.3.90.0330.13077.80
5.3.80.0270.10777.75
5.3.70.0330.14377.69
5.3.60.0230.09777.68
5.3.50.0170.09377.75
5.3.40.0200.08377.67
5.3.30.0230.07777.64
5.3.20.0130.08777.46
5.3.10.0130.07077.28
5.3.00.0170.09077.41
5.2.170.0130.03729.50
5.2.160.0070.03029.33
5.2.150.0030.04029.50
5.2.140.0000.04329.48
5.2.130.0070.03029.39
5.2.120.0130.03029.50
5.2.110.0070.03729.45
5.2.100.0070.03729.38
5.2.90.0030.03729.49
5.2.80.0170.07029.39
5.2.70.0070.06329.31
5.2.60.0030.07029.37
5.2.50.0030.06029.43
5.2.40.0070.08729.18
5.2.30.0200.07726.68
5.2.20.0100.04026.73
5.2.10.0100.04027.31
5.2.00.0170.05029.13
5.1.60.0100.03331.45
5.1.50.0070.03731.23
5.1.40.0070.03731.44
5.1.30.0170.05731.64
5.1.20.0070.04031.86
5.1.10.0070.07331.33
5.1.00.0070.03731.28
5.0.50.0030.03326.10
5.0.40.0100.02325.95
5.0.30.0100.04325.85
5.0.20.0100.02725.80
5.0.10.0030.02725.62
5.0.00.0200.08378.37
4.4.90.0000.03711.64
4.4.80.0000.03011.64
4.4.70.0030.01711.64
4.4.60.0000.01711.64
4.4.50.0030.02711.64
4.4.40.0000.02311.64
4.4.30.0000.01711.64
4.4.20.0030.01311.64
4.4.10.0000.01711.64
4.4.00.0000.02311.64
4.3.110.0000.01711.64
4.3.100.0000.01311.64
4.3.90.0000.01311.64
4.3.80.0000.02011.64
4.3.70.0030.02711.64
4.3.60.0000.02011.64
4.3.50.0030.01711.64
4.3.40.0000.04311.64
4.3.30.0000.02711.64
4.3.20.0000.03311.64
4.3.10.0000.02311.64
4.3.00.0030.01311.64

preferences:
37.12 ms | 401 KiB | 5 Q