3v4l.org

run code in 300+ PHP versions simultaneously
<?php $lines = [ "foo;bar", "1;2", ]; $arr = array_map( function(string $value): array { return str_getcsv($value, ";"); }, $lines ); var_dump($arr);

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.3.60.0120.00618.18
8.3.50.0030.01217.98
8.3.40.0140.00018.71
8.3.30.0150.00418.40
8.3.20.0040.00418.94
8.3.10.0080.00023.70
8.3.00.0000.00723.65
8.2.180.0140.00425.92
8.2.170.0110.00322.96
8.2.160.0150.00018.98
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0000.00726.16
8.2.120.0000.00821.04
8.2.110.0070.00322.30
8.2.100.0000.01217.78
8.2.90.0050.00317.88
8.2.80.0050.00318.78
8.2.70.0000.00817.75
8.2.60.0040.00417.50
8.2.50.0060.00317.55
8.2.40.0050.00319.47
8.2.30.0030.00620.50
8.2.20.0000.00817.96
8.2.10.0040.00418.04
8.2.00.0030.00319.37
8.1.280.0090.00625.92
8.1.270.0120.00322.14
8.1.260.0040.00426.35
8.1.250.0060.00328.09
8.1.240.0040.00720.37
8.1.230.0060.00617.70
8.1.220.0050.00317.74
8.1.210.0040.00418.77
8.1.200.0040.00417.35
8.1.190.0080.00017.35
8.1.180.0040.00418.10
8.1.170.0040.00717.62
8.1.160.0030.00518.83
8.1.150.0050.00218.76
8.1.140.0040.00419.02
8.1.130.0030.00320.14
8.1.120.0070.00017.53
8.1.110.0000.00717.43
8.1.100.0000.00717.43
8.1.90.0000.00817.43
8.1.80.0000.00717.47
8.1.70.0030.00317.46
8.1.60.0030.00617.49
8.1.50.0030.00517.54
8.1.40.0030.00617.53
8.1.30.0040.00417.66
8.1.20.0000.00817.55
8.1.10.0030.00517.41
8.1.00.0000.00717.41
8.0.300.0040.00418.77
8.0.290.0040.00416.75
8.0.280.0030.00318.48
8.0.270.0060.00317.07
8.0.260.0000.00720.09
8.0.250.0000.00616.88
8.0.240.0030.00316.84
8.0.230.0050.00316.86
8.0.220.0000.00716.82
8.0.210.0000.00716.70
8.0.200.0090.00016.89
8.0.190.0000.00716.86
8.0.180.0040.00416.90
8.0.170.0000.00916.91
8.0.160.0040.00416.99
8.0.150.0050.00316.83
8.0.140.0000.00716.87
8.0.130.0050.00013.36
8.0.120.0000.00816.81
8.0.110.0050.00316.89
8.0.100.0050.00316.78
8.0.90.0050.00217.01
8.0.80.0090.00916.95
8.0.70.0040.00416.83
8.0.60.0030.00516.82
8.0.50.0070.00016.76
8.0.30.0090.00917.20
8.0.20.0110.01217.40
8.0.10.0000.00716.95
8.0.00.0120.01216.65
7.4.330.0050.00015.55
7.4.320.0030.00316.59
7.4.300.0000.00616.61
7.4.290.0070.00016.51
7.4.280.0040.00416.51
7.4.270.0030.00316.63
7.4.260.0040.00416.58
7.4.250.0000.00716.52
7.4.240.0070.00016.59
7.4.230.0030.00316.40
7.4.220.0040.00416.25
7.4.210.0070.00916.47
7.4.200.0070.00016.71
7.4.160.0070.00816.41
7.4.140.0110.00617.86
7.4.130.0140.00416.60
7.4.120.0090.00816.45
7.4.110.0110.00716.59
7.4.100.0100.00716.60
7.4.90.0090.00916.59
7.4.80.0160.00319.39
7.4.70.0140.00316.38
7.4.60.0160.00616.55
7.4.50.0120.00316.40
7.4.40.0110.00616.66
7.4.00.0110.00415.01
7.3.330.0050.00013.14
7.3.320.0030.00313.32
7.3.310.0000.00716.21
7.3.300.0040.00416.31
7.3.290.0070.00016.30
7.3.280.0080.00716.29
7.3.260.0090.01016.34
7.3.240.0100.00916.35
7.3.230.0100.01016.46
7.3.210.0090.00916.32
7.3.200.0100.01016.51
7.3.190.0130.00516.32
7.3.180.0030.01316.60
7.3.170.0150.00316.44
7.3.160.0130.00416.27
7.3.10.0030.01016.49
7.3.00.0060.00916.79
7.2.330.0060.01216.54
7.2.320.0230.00316.75
7.2.310.0180.00516.69
7.2.300.0130.00416.29
7.2.290.0070.01416.38
7.2.130.0060.00616.75
7.2.120.0030.00716.77
7.2.110.0080.00316.88
7.2.100.0060.00316.77
7.2.90.0030.01016.89
7.2.80.0560.00915.55
7.2.70.0590.00915.62
7.2.60.0420.00815.80
7.2.50.0400.00815.72
7.2.40.0340.00815.70
7.2.30.0340.01015.98
7.2.20.0530.00615.69
7.2.10.0840.01115.67
7.2.00.0870.01215.79
7.1.250.0060.01015.39
7.1.200.0000.01415.78
7.1.190.1030.00713.78
7.1.180.0520.00613.75
7.1.170.0620.01313.60
7.1.160.0450.00413.72
7.1.150.0470.00613.77
7.1.140.2070.00613.64
7.1.130.2290.00613.95
7.1.120.2570.00713.57
7.1.110.2080.01013.71
7.1.100.1530.00713.91
7.1.90.3140.00713.39
7.1.80.1950.01313.36
7.1.70.2190.00313.48
7.1.60.2510.00631.71
7.1.50.3530.00331.50
7.1.40.3010.02331.57
7.1.30.2590.00732.00
7.1.20.3590.00731.93
7.1.10.3450.01313.49
7.1.00.2440.00613.84

preferences:
60.32 ms | 400 KiB | 5 Q