3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [ [16, 'News', 'News', 'News', 'News content'], [17, 'about-us', 'About us', 'About us', 'About us content'], ]; var_export( array_reduce( $array, fn($result, $row) => $result + [array_shift($row) => $row], [] ) );

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.5.00.0100.01120.11
8.4.150.0030.00014.05
8.4.140.0130.00717.52
8.4.130.0140.00617.97
8.4.120.0100.01022.46
8.4.110.0080.00820.78
8.4.100.0050.00317.92
8.4.90.0050.00417.65
8.4.80.0040.00417.74
8.4.70.0150.00517.88
8.4.60.0140.00717.73
8.4.50.0070.00518.62
8.4.40.0050.00317.62
8.4.30.0410.01117.43
8.4.20.0480.00417.53
8.4.10.0440.00717.75
8.3.280.0110.00818.36
8.3.270.0080.01116.55
8.3.260.0110.00816.86
8.3.250.0130.00518.83
8.3.240.0130.00716.66
8.3.230.0110.00616.63
8.3.220.0100.00917.17
8.3.210.0110.00716.66
8.3.200.0090.01116.53
8.3.190.0090.01017.19
8.3.180.0150.00519.16
8.3.170.0100.00717.27
8.3.160.0440.00616.45
8.3.150.0430.00716.77
8.3.140.0490.00716.50
8.3.130.0320.01416.52
8.3.120.0320.01316.45
8.3.110.0310.01216.41
8.3.100.0360.01316.45
8.3.90.0390.00916.39
8.3.80.0540.00316.63
8.3.70.0320.00516.60
8.3.60.0310.00616.38
8.3.50.0310.00916.38
8.3.40.0350.00317.27
8.3.30.0290.00617.18
8.3.20.0270.01217.52
8.3.10.0280.00817.44
8.3.00.0240.00017.47
8.2.290.0050.00520.36
8.2.280.0080.00216.73
8.2.270.0300.00916.39
8.2.260.0390.00316.43
8.2.250.0280.01316.45
8.2.240.0290.01116.37
8.2.230.0290.01016.35
8.2.220.0250.01416.22
8.2.210.0260.01316.49
8.2.200.0230.01516.31
8.2.190.0260.01116.26
8.2.180.0320.00716.36
8.2.170.0300.01117.68
8.2.160.0350.00017.74
8.2.150.0290.01617.26
8.2.140.0270.01117.32
8.2.130.0220.00017.58
8.2.120.0200.00017.64
8.2.110.0270.00317.38
8.2.100.0240.00317.65
8.2.90.0160.00417.54
8.2.80.0200.00217.43
8.2.70.0160.00317.43
8.2.60.0160.00317.36
8.2.50.0150.00417.51
8.2.40.0070.01117.48
8.2.30.0160.00317.57
8.2.20.0200.00017.49
8.2.10.0090.00917.35
8.2.00.0170.00317.44
8.1.320.0080.01015.91

preferences:
52.84 ms | 403 KiB | 5 Q