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] ]; $array = array_reverse( $array ); $array = array_reverse( $array ); var_export($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.0180.00418.56
8.3.50.0090.01220.24
8.3.40.0090.00620.13
8.3.30.0090.00618.84
8.3.20.0040.00424.18
8.3.10.0040.00424.66
8.3.00.0070.00026.16
8.2.180.0040.01125.92
8.2.170.0140.00019.04
8.2.160.0070.00722.96
8.2.150.0040.00425.66
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0040.00426.16
8.2.110.0000.00922.02
8.2.100.0110.00017.91
8.2.90.0000.01017.88
8.2.80.0000.00818.91
8.2.70.0040.00417.63
8.2.60.0050.00317.63
8.2.50.0000.00817.93
8.2.40.0090.00019.48
8.2.30.0000.00718.13
8.2.20.0000.00820.47
8.2.10.0040.00418.02
8.2.00.0040.00419.32
8.1.280.0070.00725.92
8.1.270.0060.00323.99
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0030.00621.95
8.1.230.0040.00819.44
8.1.220.0080.00017.74
8.1.210.0040.00418.77
8.1.200.0030.00617.25
8.1.190.0030.00517.23
8.1.180.0040.00418.10
8.1.170.0000.00717.62
8.1.160.0000.00718.82
8.1.150.0000.00818.61
8.1.140.0060.00317.48
8.1.130.0040.00420.53
8.1.120.0050.00317.35
8.1.110.0070.00017.33
8.1.100.0030.00517.28
8.1.90.0030.00617.43
8.1.80.0170.00017.38
8.1.70.0210.00017.39
8.1.60.0150.00417.44
8.1.50.0150.00817.37
8.1.40.0120.00817.48
8.1.30.0160.00317.41
8.1.20.0190.00017.40
8.1.10.0220.00017.41
8.1.00.0140.00217.43
8.0.300.0030.00618.77
8.0.290.0040.00416.75
8.0.280.0000.00818.29
8.0.270.0030.00516.84
8.0.260.0060.00018.39
8.0.250.0000.00716.92
8.0.240.0030.00616.87
8.0.230.0060.00016.84
8.0.220.0000.00916.80
8.0.210.0110.00616.78
8.0.200.0100.00716.94
8.0.190.0120.00516.90
8.0.180.0140.00316.92
8.0.170.0090.00916.76
8.0.160.0100.00816.76
8.0.150.0170.00316.81
8.0.140.0200.00316.73
8.0.130.0160.00716.82
8.0.120.0170.00616.95
8.0.110.0170.00516.77
8.0.100.0080.01116.92
8.0.90.0160.00316.93
8.0.80.0110.00716.87
8.0.70.0180.00016.76
8.0.60.0190.00016.89
8.0.50.0110.00816.82
8.0.30.0070.00716.93
8.0.20.0120.00316.92
8.0.10.0140.00317.04
7.4.330.0000.00515.55
7.4.320.0070.00016.51
7.4.300.0150.00016.54
7.4.290.0070.01216.38
7.4.280.0150.00616.35
7.4.270.0150.00316.45
7.4.260.0120.00616.50
7.4.250.0110.00016.45
7.4.240.0120.00016.39
7.4.230.0080.00516.48
7.4.220.0080.00816.54
7.4.210.0060.00616.44
7.4.200.0070.00716.59
7.4.190.0170.00016.54
7.4.180.0150.00316.62
7.4.160.0140.00416.53
7.4.150.0120.00616.53
7.4.140.0110.00416.52
7.4.130.0150.00016.32
7.4.120.0090.00616.24
7.4.110.0150.00216.24
7.4.100.0130.00316.46
7.4.90.0070.01016.52
7.4.80.0080.00816.25
7.4.70.0100.00616.24
7.4.60.0160.00016.45
7.4.50.0150.00016.23
7.4.40.0120.00416.30
7.4.30.0080.00816.20
7.4.20.0100.00516.34
7.4.10.0140.00216.32
7.4.00.0080.00816.34

preferences:
43.35 ms | 400 KiB | 5 Q