3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [ [ "country", "state", "city", "name", "address", "gender", "status" ], [ "Argentina", "Corrientes", "Corrientes", "Jorge", "Avenida Avellaneda 12", "Masculino", "Activo" ], [ "Argentina", "Chaco", "Resistencia", "Mariano", "Avenida Peron 12", "Masculino", "Activo" ] ]; 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.4.140.0140.01117.47
8.4.130.0070.00418.71
8.4.120.0140.00624.33
8.4.110.0050.00420.41
8.4.100.0100.01018.85
8.4.90.0050.00422.25
8.4.80.0110.00920.21
8.4.70.0130.00617.98
8.4.60.0120.00818.86
8.4.50.0110.00818.57
8.4.40.0100.01017.75
8.4.30.0090.00918.99
8.4.20.0040.00421.34
8.4.10.0030.00619.48
8.3.270.0110.00816.57
8.3.260.0150.00416.51
8.3.250.0040.00319.04
8.3.240.0130.00617.14
8.3.230.0110.00816.80
8.3.220.0120.00519.05
8.3.210.0090.00916.63
8.3.200.0050.00416.76
8.3.190.0060.00917.23
8.3.180.0060.01217.11
8.3.170.0100.01019.11
8.3.160.0120.00017.42
8.3.150.0120.00617.04
8.3.140.0040.00419.00
8.3.130.0040.00418.41
8.3.120.0090.00618.88
8.3.110.0110.01120.94
8.3.100.0080.00024.06
8.3.90.0080.00626.77
8.3.80.0030.00617.97
8.3.70.0360.01317.97
8.3.60.0330.01017.97
8.3.50.0120.00017.97
8.3.40.0170.00317.97
8.3.30.0190.00417.97
8.3.20.0190.00417.97
8.3.10.0280.00017.97
8.3.00.0240.00717.97
8.2.290.0080.00620.54
8.2.280.0030.00518.42
8.2.270.0090.00917.30
8.2.260.0120.00618.48
8.2.250.0070.01116.49
8.2.240.0030.00617.27
8.2.230.0060.00322.58
8.2.220.0030.00637.54
8.2.210.0160.00326.77
8.2.200.0060.00316.50
8.2.190.0260.00017.97
8.2.180.0160.00517.97
8.2.170.0240.00017.97
8.2.160.0160.00617.97
8.2.150.0170.00617.97
8.2.140.0120.01217.97
8.2.130.0200.00717.97
8.2.120.0140.01017.97
8.2.110.0170.00617.97
8.2.100.0280.00017.97
8.2.90.0150.00817.97
8.2.80.0190.00417.97
8.2.70.0200.00517.97
8.2.60.0170.00617.97
8.2.50.0130.01317.97
8.2.40.0210.00817.97
8.2.30.0190.00317.97
8.2.20.0180.00317.97
8.2.10.0150.00617.97
8.2.00.0180.00317.97
8.1.330.0060.01222.17
8.1.320.0100.00617.82
8.1.310.0150.00318.68
8.1.300.0040.00417.85
8.1.290.0090.00030.84
8.1.280.0260.00417.97
8.1.270.0430.00317.97
8.1.260.0400.00617.97
8.1.250.0330.01517.97
8.1.240.0370.00317.97
8.1.230.0250.01617.97
8.1.220.0150.01517.97
8.1.210.0220.00317.97
8.1.200.0240.00017.97
8.1.190.0240.00017.97
8.1.180.0160.00617.97
8.1.170.0170.00317.97
8.1.160.0170.00317.97
8.1.150.0170.00717.97
8.1.140.0270.00017.97
8.1.130.0210.00517.97
8.1.120.0160.00517.97
8.1.110.0220.00417.97
8.1.100.0190.00317.97
8.1.90.0160.00517.97
8.1.80.0170.00317.97
8.1.70.0160.00417.97
8.1.60.0190.00817.97
8.1.50.0230.00417.97
8.1.40.0170.00917.97
8.1.30.0190.00417.97
8.1.20.0160.00517.97
8.1.10.0130.00917.97
8.1.00.0260.00317.97

preferences:
28.42 ms | 403 KiB | 5 Q