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.0080.01219.63
8.4.10.0110.00719.23
8.3.150.0060.01316.74
8.3.140.0140.00418.04
8.3.130.0040.00418.29
8.3.120.0060.00320.63
8.3.110.0360.00616.30
8.3.100.0320.00316.59
8.3.90.0220.01116.27
8.3.80.0200.00616.25
8.3.70.0140.01016.75
8.3.60.0270.00416.09
8.3.50.0500.00016.13
8.3.40.0150.00617.63
8.3.30.0360.00317.36
8.3.20.0330.00717.25
8.3.10.0290.01017.50
8.3.00.0360.00017.21
8.2.260.0000.00818.51
8.2.250.0100.00018.24
8.2.240.0080.00417.11
8.2.230.0330.00616.10
8.2.220.0280.01116.31
8.2.210.0300.00316.02
8.2.200.0300.00915.88
8.2.190.0250.00916.50
8.2.180.0330.00716.21
8.2.170.0320.01317.60
8.2.160.0320.00917.25
8.2.150.0260.01017.48
8.2.140.0270.01217.49
8.2.130.0500.00317.25
8.2.120.0390.00717.13
8.2.110.0350.01017.50
8.2.100.0230.00017.38
8.2.90.0320.00817.50
8.2.80.0370.00717.50
8.2.70.0240.00617.38
8.2.60.0230.00017.25
8.2.50.0130.01017.25
8.2.40.0200.00017.49
8.2.30.0190.01317.00
8.2.20.0370.00017.50
8.2.10.0240.00017.11
8.2.00.0370.00017.00
8.1.310.0040.00415.85
8.1.300.0060.00318.32
8.1.290.0220.00015.63
8.1.280.0160.00315.75
8.1.270.0120.00617.19
8.1.260.0140.00617.25
8.1.250.0180.00317.35
8.1.240.0140.00717.13
8.1.230.0280.00717.13
8.1.220.0290.01117.21
8.1.210.0310.00717.00
8.1.200.0340.00316.97
8.1.190.0360.00716.98
8.1.180.0250.01117.10
8.1.170.0220.01117.25
8.1.160.0280.01117.13
8.1.150.0390.00017.00
8.1.140.0360.00816.75
8.1.130.0320.00717.21
8.1.120.0230.00917.35
8.1.110.0150.01517.35
8.1.100.0180.00517.34
8.1.90.0190.01917.25
8.1.80.0350.00617.13
8.1.70.0270.01217.00
8.1.60.0360.01017.11
8.1.50.0330.01317.34
8.1.40.0340.01117.25
8.1.30.0330.01117.35
8.1.20.0380.00317.38
8.1.10.0400.00317.25
8.1.00.0340.01017.13

preferences:
31.37 ms | 403 KiB | 5 Q