3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = <<<TEXT "name1", "b", "2", "name2", "c", "3", "name3", "b", "2" TEXT; var_export( array_map( fn($chunk) => array_combine(['name', 'char', 'qnt'], $chunk), array_chunk(str_getcsv($text), 3) ) );

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.130.0120.00417.54
8.4.120.0120.00822.20
8.4.110.0160.00420.34
8.4.100.0100.01019.01
8.4.90.0090.01120.27
8.4.80.0060.00319.08
8.4.70.0100.00618.88
8.4.60.0050.00318.70
8.4.50.0160.00420.18
8.4.40.0120.00817.92
8.4.30.0110.00718.64
8.4.20.0030.00619.64
8.4.10.0080.00819.39
8.3.250.0090.00617.12
8.3.240.0130.00716.74
8.3.230.0140.00616.61
8.3.220.0070.01018.95
8.3.210.0110.00716.69
8.3.200.0070.00216.73
8.3.190.0080.00917.00
8.3.180.0070.01118.94
8.3.170.0090.00916.59
8.3.160.0070.01118.18
8.3.150.0100.01017.32
8.3.140.0090.00918.86
8.3.130.0120.00616.61
8.3.120.0030.01418.96
8.3.110.0130.00620.94
8.3.100.0090.00018.57
8.3.90.0160.00326.77
8.3.80.0420.00726.77
8.3.70.0420.00826.77
8.3.60.0410.00926.77
8.3.50.0390.00426.77
8.3.40.0250.00826.77
8.3.30.0390.00326.77
8.3.20.0260.00826.77
8.3.10.0270.01026.77
8.3.00.0320.01226.77
8.2.290.0090.01120.49
8.2.280.0130.00718.43
8.2.270.0140.00016.90
8.2.260.0120.00618.16
8.2.250.0060.00917.28
8.2.240.0040.00818.65
8.2.230.0130.00622.58
8.2.220.0060.00324.06
8.2.210.0230.01526.77
8.2.200.0260.01526.77
8.2.190.0350.00426.77
8.2.180.0310.00926.77
8.2.170.0400.00926.77
8.2.160.0380.00326.77
8.2.150.0420.00426.77
8.2.140.0300.01226.77
8.2.130.0220.00326.77
8.2.120.0290.01126.77
8.2.110.0240.01626.77
8.2.100.0410.00026.77
8.2.90.0300.01226.77
8.2.80.0330.01026.77
8.2.70.0430.00026.77
8.2.60.0330.00626.77
8.2.50.0240.00326.77
8.2.40.0190.00026.77
8.2.30.0130.00426.77
8.2.20.0250.01226.77
8.2.10.0290.01026.77
8.2.00.0280.01226.77
8.1.330.0110.00821.96
8.1.320.0090.01018.04
8.1.310.0080.00016.32
8.1.300.0030.00616.46
8.1.290.0350.00726.77
8.1.280.0400.00826.77
8.1.270.0480.00026.77
8.1.260.0380.00726.77
8.1.250.0310.00726.77
8.1.240.0290.00626.77
8.1.230.0320.00626.77
8.1.220.0270.01226.77
8.1.210.0250.01426.77
8.1.200.0320.00726.77
8.1.190.0260.01326.77
8.1.180.0210.01726.77
8.1.170.0350.00426.77
8.1.160.0350.00426.77
8.1.150.0390.00026.77
8.1.140.0500.01326.77
8.1.130.0240.00026.77
8.1.120.0180.00026.77
8.1.110.0320.00726.77
8.1.100.0320.00626.77
8.1.90.0210.00726.77
8.1.80.0330.00626.77
8.1.70.0250.00726.77
8.1.60.0340.00826.77
8.1.50.0270.00826.77
8.1.40.0400.00326.77
8.1.30.0290.01326.77
8.1.20.0350.00626.77
8.1.10.0380.00326.77
8.1.00.0320.01026.77

preferences:
17.64 ms | 403 KiB | 5 Q