3v4l.org

run code in 500+ PHP versions simultaneously
<?php $array = [ ["name", "address", "city"], ["anoop", "palasis", "Indore"], ["ravinder", "annapurna", "Indore"] ]; var_export( array_map( fn($row) => array_combine($array[0], $row), array_slice($array, 1) ) );

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.70.0050.00316.64
8.5.60.0120.00516.73
8.5.50.0020.00716.66
8.5.30.0100.00818.09
8.5.20.0040.00419.38
8.5.10.0130.00616.80
8.5.00.0090.01119.91
8.4.220.0090.00121.40
8.4.210.0140.00819.41
8.4.180.0100.01121.79
8.4.170.0140.00722.27
8.4.160.0130.00823.87
8.4.150.0080.00416.87
8.4.140.0100.01217.39
8.4.130.0100.01019.41
8.4.120.0130.00623.88
8.4.110.0110.00822.36
8.4.100.0110.00917.53
8.4.90.0110.00920.37
8.4.80.0050.00618.83
8.4.70.0120.00718.84
8.4.60.0110.00618.66
8.4.50.0130.00717.64
8.4.40.0330.00717.29
8.4.30.0290.00517.38
8.4.20.0430.01117.57
8.4.10.0450.00317.43
8.3.300.0120.00820.82
8.3.290.0170.00718.29
8.3.280.0150.01118.30
8.3.270.0110.00816.53
8.3.260.0100.01016.34
8.3.250.0120.00618.71
8.3.240.0130.00617.18
8.3.230.0150.00316.61
8.3.220.0160.00719.07
8.3.210.0090.00916.44
8.3.200.0040.00516.70
8.3.190.0160.00416.54
8.3.180.0110.00716.66
8.3.170.0400.00316.17
8.3.160.0380.00916.20
8.3.150.0350.01016.41
8.3.140.0400.00616.26
8.3.130.0340.00716.39
8.3.120.0380.00316.41
8.3.110.0270.01016.78
8.3.100.0340.00916.44
8.3.90.0300.00816.51
8.3.80.0240.01216.50
8.3.70.0140.00716.46
8.3.60.0290.01116.41
8.3.50.0360.00616.47
8.3.40.0290.00917.30
8.3.30.0290.00717.38
8.3.20.0280.00717.39
8.3.10.0240.00717.44
8.3.00.0150.00917.31
8.2.300.0120.01118.04
8.2.290.0110.00818.93
8.2.280.0080.01116.74
8.2.270.0330.00716.50
8.2.260.0310.00616.36
8.2.250.0280.01016.73
8.2.240.0360.00616.36
8.2.230.0290.01016.63
8.2.220.0290.00916.61
8.2.210.0230.01516.39
8.2.200.0350.00416.42
8.2.190.0300.01016.26
8.2.180.0360.00716.14
8.2.170.0420.00617.46
8.2.160.0330.00717.59
8.2.150.0350.00617.38
8.2.140.0330.00717.68
8.2.130.0330.01017.51
8.2.120.0270.01117.24
8.2.110.0370.00017.38
8.2.100.0360.00417.43
8.2.90.0520.00417.38
8.2.80.0180.00917.49
8.2.70.0260.01317.31
8.2.60.0240.01417.41
8.2.50.0190.01917.41
8.2.40.0290.00717.61
8.2.30.0250.01317.68
8.2.20.0330.00417.64
8.2.10.0260.01017.49
8.2.00.0280.00817.36
8.1.340.0150.00517.76
8.1.320.0090.01017.99

preferences:
61.18 ms | 884 KiB | 5 Q