3v4l.org

run code in 500+ PHP versions simultaneously
<?php $array = [ ["name", "address", "city"], ["anoop", "palasis", "Indore"], ["ravinder", "annapurna", "Indore"] ]; array_walk( $array, fn(&$row, $_, $header) => $row = array_combine($header, $row), array_shift($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.5.70.0090.00518.51
8.5.60.0120.00716.79
8.5.50.0150.00316.43
8.5.30.0120.00717.98
8.5.20.0030.00419.11
8.5.10.0120.00616.84
8.5.00.0140.00920.06
8.4.220.0050.00419.30
8.4.210.0110.01021.38
8.4.180.0120.00919.76
8.4.170.0090.01220.51
8.4.160.0110.01120.65
8.4.150.0060.00616.80
8.4.140.0120.00917.36
8.4.130.0110.01018.00
8.4.120.0050.00520.49
8.4.110.0130.00718.76
8.4.100.0090.01117.45
8.4.90.0130.00720.55
8.4.80.0090.01018.84
8.4.70.0030.00519.18
8.4.60.0140.00819.09
8.4.50.0090.01119.44
8.4.40.0240.00317.42
8.4.30.0160.00617.44
8.4.20.0210.00017.51
8.4.10.0150.00717.66
8.3.300.0100.01020.81
8.3.290.0060.00420.75
8.3.280.0140.00818.39
8.3.270.0070.01216.59
8.3.260.0050.00416.77
8.3.250.0120.00618.72
8.3.240.0120.00917.12
8.3.230.0070.01116.54
8.3.220.0040.00418.87
8.3.210.0140.00516.63
8.3.200.0030.00616.71
8.3.190.0080.01216.63
8.3.180.0050.00316.51
8.3.170.0410.00416.66
8.3.160.0370.00816.51
8.3.150.0360.00716.59
8.3.140.0400.00616.80
8.3.130.0310.00716.39
8.3.120.0400.00016.46
8.3.110.0310.01116.47
8.3.100.0350.01416.76
8.3.90.0420.00616.39
8.3.80.0390.00616.16
8.3.70.0390.01316.48
8.3.60.0380.00616.34
8.3.50.0320.00916.38
8.3.40.0310.00317.40
8.3.30.0250.01217.38
8.3.20.0300.01017.21
8.3.10.0250.00817.35
8.3.00.0130.01317.35
8.2.300.0100.01020.35
8.2.290.0120.00718.71
8.2.280.0230.00617.51
8.2.270.0270.01016.36
8.2.260.0330.00616.54
8.2.250.0260.01316.50
8.2.240.0400.00016.13
8.2.230.0290.01216.30
8.2.220.0250.01516.29
8.2.210.0350.00316.13
8.2.200.0320.00616.13
8.2.190.0300.01116.38
8.2.180.0360.00316.16
8.2.170.0350.00917.27
8.2.160.0400.00017.42
8.2.150.0320.00417.34
8.2.140.0330.00717.02
8.2.130.0320.01017.42
8.2.120.0370.00317.24
8.2.110.0360.00417.21
8.2.100.0360.00417.24
8.2.90.0390.01117.27
8.2.80.0380.00917.14
8.2.70.0330.00617.31
8.2.60.0290.01117.34
8.2.50.0290.01017.34
8.2.40.0290.00717.46
8.2.30.0290.00817.41
8.2.20.0230.01317.29
8.2.10.0260.01017.46
8.2.00.0300.00717.46
8.1.340.0150.00620.19
8.1.320.0130.00615.92

preferences:
51.97 ms | 877 KiB | 5 Q