3v4l.org

run code in 300+ PHP versions simultaneously
<?php $zahlen = array(1, 4, 8, 12); $zahlen = drehum($zahlen); function drehum($array, $key = 0, &$neu = null) { if(!isset($neu)) { $neu = array(); } if($key <= count($array) - 1) { $neu[count($array) - $key] = $array[$key]; drehum($array, $key++, $neu); } return $neu; } var_dump($zahlen);

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.0630.02672.50
8.3.50.0560.02672.36
8.3.40.0250.01844.82
8.3.30.0330.01045.08
8.3.20.0170.00746.39
8.3.10.0180.00348.82
8.3.00.0140.00350.36
8.2.180.0710.01673.02
8.2.170.0350.01345.00
8.2.160.0380.01046.38
8.2.150.0160.00645.03
8.2.140.0090.00350.20
8.2.130.0090.00647.18
8.2.120.0170.00348.41
8.2.110.0120.01247.73
8.2.100.0210.01244.16
8.2.90.0140.00745.18
8.2.80.0190.00644.05
8.2.70.0060.01643.63
8.2.60.0100.01343.93
8.2.50.0150.00943.63
8.2.40.0140.01046.99
8.2.30.0170.01045.48
8.2.20.0090.01243.67
8.2.10.0180.00444.03
8.2.00.0140.01044.14
8.1.280.0490.00376.03
8.1.270.0200.00746.50
8.1.260.0250.00447.75
8.1.250.0040.01448.24
8.1.240.0160.00949.61
8.1.230.0230.01045.28
8.1.220.0130.01043.88
8.1.210.0070.01543.48
8.1.200.0130.01043.38
8.1.190.0100.01443.23
8.1.180.0110.01443.65
8.1.170.0160.00644.72
8.1.160.0130.00946.67
8.1.150.0140.00744.98
8.1.140.0220.00345.62
8.1.130.0180.00743.71
8.1.120.0130.00743.56
8.1.110.0180.00643.58
8.1.100.0120.00943.53
8.1.90.0070.01443.54
8.1.80.0120.01243.54
8.1.70.0110.01143.52
8.1.60.0100.01643.59
8.1.50.0130.01343.52
8.1.40.0100.01743.52
8.1.30.0170.01043.61
8.1.20.0100.01443.63
8.1.10.0250.01373.29
8.1.00.0140.02573.04
8.0.300.0310.01072.72
8.0.290.0130.01972.63
8.0.280.0370.01074.05
8.0.270.0200.01372.83
8.0.260.0180.01873.21
8.0.250.0260.01072.45
8.0.240.0130.02072.54
8.0.230.0200.01672.50
8.0.220.0140.01772.29
8.0.210.0170.01772.32
8.0.200.0310.01072.55
8.0.190.0380.01472.51
8.0.180.0320.00972.50
8.0.170.0260.02072.52
8.0.160.0200.02072.36
8.0.150.0280.01172.39
8.0.140.0460.00472.50
8.0.130.0580.024121.86
8.0.120.0230.01972.47
8.0.110.0200.02072.39
8.0.100.0240.01372.48
8.0.90.0270.01372.32
8.0.80.0640.05472.44
8.0.70.0220.01672.31
8.0.60.0160.02372.45
8.0.50.0350.00372.30
8.0.30.0460.03672.74
8.0.20.0590.03272.64
8.0.10.0260.01372.56
8.0.00.0540.04172.42
7.4.330.0140.01076.40
7.4.320.0240.01072.04
7.4.300.0140.02171.94
7.4.290.0360.01072.04
7.4.280.0320.01672.09
7.4.270.0270.01472.01
7.4.260.0440.01472.02
7.4.250.0100.02871.95
7.4.240.0270.01571.94
7.4.230.0220.01672.19
7.4.220.0630.03072.04
7.4.210.0340.04772.15
7.4.200.0130.02271.92
7.4.160.0460.04372.00
7.4.150.0600.03572.06
7.4.140.0520.04572.04
7.4.130.0760.04272.14
7.4.120.0600.04672.07
7.4.110.0460.04572.12
7.4.100.0680.02972.11
7.4.90.0460.04571.96
7.4.80.0590.03871.99
7.4.70.0560.04072.11
7.4.60.0610.02971.96
7.4.50.0370.02371.95
7.4.40.0520.04272.20
7.4.30.0590.03372.13
7.4.00.0410.02770.24
7.3.330.0540.024121.83
7.3.320.0520.026121.78
7.3.310.0250.01471.93
7.3.300.0170.02071.98
7.3.290.0410.05071.85
7.3.280.0500.04571.93
7.3.270.0620.03171.93
7.3.260.0570.03772.23
7.3.250.0530.05271.94
7.3.240.0660.03871.88
7.3.230.0540.03971.88
7.3.210.0660.03071.80
7.3.200.0540.03872.11
7.3.190.0500.05372.02
7.3.180.0540.04072.24
7.3.170.0560.03972.02
7.3.160.0750.02771.98
7.2.330.0510.04772.08
7.2.320.0460.05272.27
7.2.310.0540.03972.41
7.2.300.0770.04272.17
7.2.290.0640.04372.35
7.2.60.1990.02078.70
7.2.00.0790.02081.62
7.1.200.4190.02377.41
7.1.100.0440.01640.19
7.1.70.2920.02779.04
7.1.60.0240.05579.20
7.1.50.0300.04779.21
7.1.00.0200.10384.25
7.0.201.6460.03373.82
7.0.60.3200.09075.88
7.0.50.0270.09773.48
7.0.40.0330.06020.40
7.0.30.0500.08320.30
7.0.20.0330.10720.30
7.0.10.0170.10720.21
7.0.00.0270.10720.22
5.6.280.0170.10785.58
5.6.210.0330.13385.15
5.6.200.0370.12382.80
5.6.190.0200.07384.90
5.6.180.0630.07085.20
5.6.170.0500.07385.06
5.6.160.0470.10385.10
5.6.150.0370.11782.86
5.6.140.0130.07782.82
5.6.130.0230.13082.82
5.6.120.0300.11385.85
5.6.110.0170.14385.76
5.6.100.0170.09385.70
5.6.90.0300.10785.69
5.6.80.0200.07785.24
5.5.350.0400.13085.15
5.5.340.0230.07382.68
5.5.330.0430.10384.82
5.5.320.0770.12384.91
5.5.310.0400.06784.74
5.5.300.0430.10082.65
5.5.290.0300.11382.73
5.5.280.0270.10785.47
5.5.270.0300.06785.59
5.5.260.0400.09385.58
5.5.250.0330.06785.20
5.5.240.0330.12084.89

preferences:
49.26 ms | 400 KiB | 5 Q