3v4l.org

run code in 300+ PHP versions simultaneously
<?php $insertData = [ [ 'test' => '1', 'test1' => '2', ], [ 'test' => '3', 'test1' => '4', ] ]; $values = array_map(fn (array $row) => array_push($values, ...array_values($row)), $insertData); var_dump( ($values), );

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.20.0190.00319.65
8.4.10.0150.00419.46
8.3.150.0070.01116.77
8.3.140.0070.00716.97
8.3.130.0000.00818.43
8.3.120.0050.00520.58
8.3.110.0320.01216.47
8.3.100.0320.00916.46
8.3.90.0300.00316.55
8.3.80.0310.00916.38
8.3.70.0190.00416.25
8.3.60.0170.01416.13
8.3.50.0320.01116.37
8.3.40.0330.00317.22
8.3.30.0340.01017.38
8.3.20.0290.01117.50
8.3.10.0270.00517.50
8.3.00.0350.00017.36
8.2.260.0150.00316.91
8.2.250.0090.00618.68
8.2.240.0030.00618.83
8.2.230.0210.00416.74
8.2.220.0150.00616.62
8.2.210.0240.01016.23
8.2.200.0280.01316.63
8.2.190.0400.00316.38
8.2.180.0390.00616.41
8.2.170.0340.00717.75
8.2.160.0260.00717.60
8.2.150.0140.00717.47
8.2.140.0260.01517.63
8.2.130.0270.01417.63
8.2.120.0200.00617.60
8.2.110.0200.00317.60
8.2.100.0350.00717.63
8.2.90.0320.01017.60
8.2.80.0370.00617.25
8.2.70.0330.01517.25
8.2.60.0470.00717.38
8.2.50.0400.00317.50
8.2.40.0330.00717.25
8.2.30.0310.00917.60
8.2.20.0280.01217.50
8.2.10.0360.00317.38
8.2.00.0330.00717.25
8.1.310.0040.01116.25
8.1.300.0060.01018.46
8.1.290.0310.01315.98
8.1.280.0250.01215.61
8.1.270.0290.01017.39
8.1.260.0330.00917.36
8.1.250.0340.01117.25
8.1.240.0340.01317.13
8.1.230.0360.00417.11
8.1.220.0300.00917.38
8.1.210.0280.00617.25
8.1.200.0430.00417.13
8.1.190.0330.01116.98
8.1.180.0250.01617.10
8.1.170.0390.00017.25
8.1.160.0330.00717.11
8.1.150.0350.00617.10
8.1.140.0330.00317.10
8.1.130.0330.00317.13
8.1.120.0260.01517.38
8.1.110.0300.01117.25
8.1.100.0400.00017.38
8.1.90.0320.00617.25
8.1.80.0330.00717.25
8.1.70.0330.00917.25
8.1.60.0290.01617.47
8.1.50.0330.00917.38
8.1.40.0350.00917.25
8.1.30.0280.01317.23
8.1.20.0370.00017.36
8.1.10.0290.01317.13
8.1.00.0320.01017.35

preferences:
31.98 ms | 403 KiB | 5 Q