3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [ 2 => (object)['title' => 'Section', 'linked' => 1], 1 => (object)['title' => 'Sub-Section', 'linked' => 1], 0 => (object)['title' => 'Sub-Sub-Section', 'linked' => null] ]; var_export(array_reverse($array));

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.0110.00716.49
8.3.50.0040.01220.13
8.3.40.0110.00420.30
8.3.30.0110.00718.67
8.3.20.0040.00424.18
8.3.10.0090.00024.66
8.3.00.0050.00226.16
8.2.180.0150.00425.92
8.2.170.0140.00018.93
8.2.160.0140.00322.96
8.2.150.0000.00725.66
8.2.140.0000.00824.66
8.2.130.0000.00726.16
8.2.120.0090.00919.89
8.2.110.0060.00322.20
8.2.100.0080.00419.64
8.2.90.0040.00417.75
8.2.80.0050.00318.74
8.2.70.0050.00317.75
8.2.60.0000.00918.04
8.2.50.0030.00518.07
8.2.40.0050.00319.95
8.2.30.0000.00917.98
8.2.20.0000.00820.41
8.2.10.0000.00718.04
8.2.00.0040.00419.22
8.1.280.0110.00725.92
8.1.270.0060.00323.99
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0090.00023.79
8.1.230.0110.00017.83
8.1.220.0040.00417.74
8.1.210.0030.00518.77
8.1.200.0060.00317.23
8.1.190.0030.00617.23
8.1.180.0040.00418.10
8.1.170.0080.00018.56
8.1.160.0080.00018.80
8.1.150.0000.00718.57
8.1.140.0050.00317.34
8.1.130.0030.00917.38
8.1.120.0000.00717.24
8.1.110.0050.00317.31
8.1.100.0000.00817.44
8.1.90.0030.00617.45
8.1.80.0070.00217.30
8.1.70.0080.00817.35
8.1.60.0090.00917.48
8.1.50.0140.00317.27
8.1.40.0080.00817.33
8.1.30.0060.00317.44
8.1.20.0000.01017.44
8.1.10.0100.00017.34
8.1.00.0100.00317.34
8.0.300.0060.00318.77
8.0.290.0000.00716.63
8.0.280.0030.00618.36
8.0.270.0000.00816.76
8.0.260.0060.00016.86
8.0.250.0000.00716.89
8.0.240.0060.00316.84
8.0.230.0000.00716.96
8.0.220.0050.00516.80
8.0.210.0130.00016.79
8.0.200.0110.00316.82
8.0.190.0150.00016.88
8.0.180.0140.00016.80
8.0.170.0140.00016.89
8.0.160.0140.00016.84
8.0.150.0110.00416.74
8.0.140.0070.00716.80
8.0.130.0100.00516.77
8.0.120.0070.00716.88
8.0.110.0030.01016.86
8.0.100.0040.00816.88
8.0.90.0040.00816.73
8.0.80.0140.00016.71
8.0.70.0080.00516.80
8.0.60.0100.00516.79
8.0.50.0070.00616.73
8.0.30.0160.00016.78
8.0.20.0100.00516.87
8.0.10.0150.00016.95
7.4.330.0020.00215.55
7.4.320.0040.00416.45
7.4.300.0040.00416.42
7.4.290.0080.00716.42
7.4.280.0090.00316.39
7.4.270.0070.00016.43
7.4.260.0130.00016.45
7.4.250.0100.00516.43
7.4.240.0070.00516.40
7.4.230.0150.00016.52
7.4.220.0110.00316.37
7.4.210.0060.00916.38
7.4.200.0100.00316.54
7.4.190.0000.00916.48
7.4.180.0090.00516.52
7.4.160.0120.00016.43
7.4.150.0110.00316.53
7.4.140.0050.00516.40
7.4.130.0000.01516.32
7.4.120.0040.00916.18
7.4.110.0110.00416.24
7.4.100.0110.00416.42
7.4.90.0140.00016.35
7.4.80.0040.01116.18
7.4.70.0100.00516.36
7.4.60.0090.00516.45
7.4.50.0070.00716.25
7.4.40.0110.00416.16
7.4.30.0000.01116.18
7.4.20.0000.01216.27
7.4.10.0130.00016.29
7.4.00.0090.00516.21

preferences:
49.54 ms | 400 KiB | 5 Q