3v4l.org

run code in 300+ PHP versions simultaneously
<?php setlocale(LC_CTYPE, "en_US.UTF-8"); $test = "❤"; $line = "test1❤test2❤test3"; $header = str_getcsv($line, $test); var_dump($header);

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.70.0110.00717.00
8.3.60.0070.00718.68
8.3.50.0090.00618.27
8.3.40.0120.00919.00
8.3.30.0070.01018.93
8.3.20.0050.00324.18
8.3.10.0030.00524.66
8.3.00.0040.00426.16
8.2.190.0220.00317.00
8.2.180.0180.00325.92
8.2.170.0120.00319.16
8.2.160.0140.00022.96
8.2.150.0040.00425.66
8.2.140.0070.00424.66
8.2.130.0050.00226.16
8.2.120.0040.00426.16
8.2.110.0100.00021.36
8.2.100.0110.00018.16
8.2.90.0050.00319.95
8.2.80.0100.00217.97
8.2.70.0140.00017.88
8.2.60.0060.00318.05
8.2.50.0100.00018.07
8.2.40.0090.00218.35
8.2.30.0110.00618.20
8.2.20.0040.00418.42
8.2.10.0040.00419.55
8.2.00.0040.00419.48
8.1.280.0140.00725.92
8.1.270.0000.00724.34
8.1.260.0030.00526.35
8.1.250.0040.00428.09
8.1.240.0100.00022.67
8.1.230.0120.00421.31
8.1.220.0040.00418.03
8.1.210.0000.00919.11
8.1.200.0090.00317.60
8.1.190.0040.00417.47
8.1.180.0030.00618.10
8.1.170.0100.00718.76
8.1.160.0050.00519.24
8.1.150.0030.00619.11
8.1.140.0040.00419.07
8.1.130.0070.00020.63
8.1.120.0000.00817.72
8.1.110.0080.00017.72
8.1.100.0000.00717.72
8.1.90.0000.00717.71
8.1.80.0030.00617.86
8.1.70.0000.00717.79
8.1.60.0000.00917.65
8.1.50.0040.00417.91
8.1.40.0080.00017.88
8.1.30.0040.00418.02
8.1.20.0040.00418.04
8.1.10.0000.00817.79
8.1.00.0040.00417.81
8.0.300.0030.00620.33
8.0.290.0080.00416.88
8.0.280.0000.00718.68
8.0.270.0000.00718.43
8.0.260.0040.00418.95
8.0.250.0000.00717.19
8.0.240.0040.00417.25
8.0.230.0070.00017.23
8.0.220.0040.00417.26
8.0.210.0080.00017.08
8.0.200.0030.00317.29
8.0.190.0040.00417.38
8.0.180.0030.00617.28
8.0.170.0030.00617.11
8.0.160.0040.00417.20
8.0.150.0000.00717.20
8.0.140.0000.00717.25
8.0.130.0030.00313.62
8.0.120.0060.00317.26
8.0.110.0060.00317.41
8.0.100.0030.00617.39
8.0.90.0000.00917.42
8.0.80.0120.01417.35
8.0.70.0050.01617.40
8.0.60.0070.01317.28
8.0.50.0090.01317.33
8.0.30.0120.01017.34
8.0.20.0120.01117.40
8.0.10.0090.01017.49
8.0.00.0120.01117.43
7.4.330.0000.00615.55
7.4.320.0000.00616.94
7.4.300.0000.00616.93
7.4.290.0030.00316.81
7.4.280.0000.00716.86
7.4.270.0030.00317.00
7.4.260.0040.00416.92
7.4.250.0030.00616.96
7.4.240.0050.00317.03
7.4.230.0000.00916.83
7.4.220.0030.00617.13
7.4.210.0090.01217.15
7.4.200.0100.01117.03
7.4.190.0070.01317.04
7.4.180.0100.01017.04
7.4.160.0030.01517.06
7.4.150.0070.01417.01
7.4.140.0070.01517.05
7.4.130.0100.00916.86
7.4.120.0110.01016.83
7.4.110.0090.01216.94
7.4.100.0110.00916.92
7.4.90.0100.01016.96
7.4.80.0110.01216.88
7.4.70.0100.01116.94
7.4.60.0090.01316.91
7.4.50.0110.00916.86
7.4.40.0070.01116.82
7.4.30.0110.00916.86
7.4.20.0060.01516.89
7.4.10.0040.01616.92
7.4.00.0080.01317.00
7.3.330.0060.00316.30
7.3.320.0030.00313.50
7.3.310.0030.00616.49
7.3.300.0050.00316.68
7.3.290.0110.00816.67
7.3.280.0090.01116.65
7.3.270.0070.01216.66
7.3.260.0080.01016.65
7.3.250.0080.01116.72
7.3.240.0070.01216.65
7.3.230.0120.00916.72
7.3.220.0080.01316.66
7.3.210.0120.00916.61
7.3.200.0150.00716.59
7.3.190.0090.01316.56
7.3.180.0050.01616.62
7.3.170.0110.01116.62
7.3.160.0070.01316.61
7.3.150.0070.01216.61
7.3.140.0090.01216.66
7.3.130.0090.01016.56
7.3.120.0060.01216.65
7.3.110.0080.01316.57
7.3.100.0100.01116.52
7.3.90.0110.01016.86
7.3.80.0090.01116.65
7.3.70.0110.01016.74
7.3.60.0070.01216.76
7.3.50.0080.01116.78
7.3.40.0110.00916.78
7.3.30.0090.01116.78
7.3.20.0090.01116.78
7.3.10.0060.01416.71
7.3.00.0100.01216.79

preferences:
45.69 ms | 401 KiB | 5 Q