3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = <<<EOL "test0","test1 test2 test3 test4 test5 test6","test7", test01,test02,test03,test04 EOL; $stream = fopen('php://memory', 'r+'); fwrite($stream, $string); rewind($stream); $result = fgetcsv($stream, 0, "\n"); var_dump($result);

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.40.0150.00018.49
8.3.30.0090.00618.54
8.3.20.0040.00420.16
8.3.10.0070.00023.48
8.3.00.0000.00820.38
8.2.170.0120.00322.96
8.2.160.0130.00020.29
8.2.150.0070.00024.18
8.2.140.0080.00024.66
8.2.130.0000.00821.04
8.2.120.0040.00426.35
8.2.110.0060.00322.08
8.2.100.0040.00718.09
8.2.90.0000.00819.09
8.2.80.0000.00817.97
8.2.70.0000.00817.50
8.2.60.0080.00017.93
8.2.50.0000.00818.10
8.2.40.0000.00920.48
8.2.30.0000.00721.02
8.2.20.0000.00717.85
8.2.10.0000.00717.91
8.2.00.0040.00417.97
8.1.270.0080.00023.79
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0030.00622.19
8.1.230.0110.00019.00
8.1.220.0030.00617.74
8.1.210.0040.00418.77
8.1.200.0030.00617.23
8.1.190.0050.00316.88
8.1.180.0030.00618.10
8.1.170.0040.00418.62
8.1.160.0030.00318.91
8.1.150.0040.00420.65
8.1.140.0060.00319.55
8.1.130.0000.00718.73
8.1.120.0000.00717.32
8.1.110.0000.00817.32
8.1.100.0080.00017.38
8.1.90.0000.00717.43
8.1.80.0040.00417.43
8.1.70.0030.00317.37
8.1.60.0000.01117.52
8.1.50.0090.00317.43
8.1.40.0030.00617.39
8.1.30.0030.00517.57
8.1.20.0040.00417.59
8.1.10.0030.00617.35
8.1.00.0040.00417.39
8.0.300.0000.00818.77
8.0.290.0070.00016.63
8.0.280.0000.00718.44
8.0.270.0030.00317.29
8.0.260.0070.00016.81
8.0.250.0060.00017.01
8.0.240.0000.00716.98
8.0.230.0000.00717.02
8.0.220.0000.00716.85
8.0.210.0030.00316.95
8.0.200.0000.00617.01
8.0.190.0060.00317.07
8.0.180.0030.00517.00
8.0.170.0000.00817.00
8.0.160.0040.00416.84
8.0.150.0000.00716.98
8.0.140.0040.00416.85
8.0.130.0030.00313.38
8.0.120.0000.00716.96
8.0.110.0040.00416.78
8.0.100.0040.00416.90
8.0.90.0070.00016.89
8.0.80.0170.00316.89
8.0.70.0070.00016.99
8.0.60.0040.00416.84
8.0.50.0070.00016.91
8.0.30.0070.01016.96
8.0.20.0110.00917.40
8.0.10.0000.00717.07
8.0.00.0090.01516.57
7.4.330.0050.00015.55
7.4.320.0000.00716.45
7.4.300.0030.00316.54
7.4.290.0080.00016.57
7.4.280.0040.00416.41
7.4.270.0070.00016.38
7.4.260.0030.00316.57
7.4.250.0030.00516.36
7.4.240.0040.00416.45
7.4.230.0040.00416.36
7.4.220.0110.00616.49
7.4.210.0080.00616.39
7.4.200.0000.00716.64
7.4.160.0110.00516.49
7.4.150.0140.00317.40
7.4.140.0100.01117.86
7.4.130.0120.01316.32
7.4.120.0070.01116.48
7.4.110.0100.00716.39
7.4.100.0140.00416.38
7.4.90.0110.00716.63
7.4.80.0140.00319.39
7.4.70.0060.01016.43
7.4.60.0040.01116.58
7.4.50.0030.00916.38
7.4.40.0040.01116.52
7.4.30.0080.00816.53
7.4.10.0100.00715.05
7.4.00.0060.01014.91
7.3.330.0030.00313.18
7.3.320.0000.00513.18
7.3.310.0030.00316.32
7.3.300.0050.00316.20
7.3.290.0030.00616.12
7.3.280.0100.00516.27
7.3.270.0070.01017.40
7.3.260.0140.00716.46
7.3.250.0110.00816.40
7.3.240.0130.00316.35
7.3.230.0030.01916.14
7.3.210.0070.01016.25
7.3.200.0100.01016.23
7.3.190.0110.01116.14
7.3.180.0090.00616.31
7.3.170.0090.00616.43
7.3.160.0140.00616.29
7.3.130.0090.00614.73
7.3.120.0090.00614.65
7.3.110.0080.01014.74
7.3.100.0060.00714.66
7.3.90.0030.01014.83
7.3.80.0080.00314.79
7.3.70.0090.00514.62
7.3.60.0070.00614.71
7.3.50.0070.00614.72
7.3.40.0050.01014.54
7.3.30.0000.01114.67
7.3.20.0020.00916.56
7.3.10.0030.01016.55
7.3.00.0050.00816.67
7.2.330.0120.00616.63
7.2.320.0100.01016.51
7.2.310.0040.01416.54
7.2.300.0100.00716.30
7.2.290.0130.00416.59
7.2.260.0070.00714.80
7.2.250.0100.00714.84
7.2.240.0070.00814.73
7.2.230.0010.01414.98
7.2.220.0070.00614.85
7.2.210.0050.00814.98
7.2.200.0050.00914.81
7.2.190.0050.00814.76
7.2.180.0040.01014.70
7.2.170.0060.00914.71
7.2.160.0080.00614.94
7.2.150.0090.00616.91
7.2.140.0050.00916.75
7.2.130.0020.01116.80
7.2.120.0070.00916.73
7.2.110.0070.00616.86
7.2.100.0030.00816.76
7.2.90.0070.00416.81
7.2.80.0020.00816.56
7.2.70.0020.01216.81
7.2.60.0040.00816.71
7.2.50.0030.01016.85
7.2.40.0050.00916.88
7.2.30.0040.00716.85
7.2.20.0030.00816.84
7.2.10.0020.00916.80
7.2.00.0040.00817.70
7.1.330.0050.00915.73
7.1.320.0080.00715.83
7.1.310.0010.01215.60
7.1.300.0030.00615.75
7.1.290.0020.01115.63
7.1.280.0020.00915.76
7.1.270.0080.00515.68
7.1.260.0020.01215.54
7.1.250.0040.00915.78
7.1.240.0000.01415.77
7.1.230.0060.00615.84
7.1.220.0040.00615.47
7.1.210.0000.01115.72
7.1.200.0170.00515.63
7.1.190.0070.00715.73
7.1.180.0030.00615.77
7.1.170.0000.01115.76
7.1.160.0080.00815.57
7.1.150.0040.01215.88
7.1.140.0100.00315.63
7.1.130.0100.00315.50
7.1.120.0030.01015.66
7.1.110.0030.00615.52
7.1.100.0030.00816.99
7.1.90.0030.00915.94
7.1.80.0000.01515.80
7.1.70.0030.00816.37
7.1.60.0170.00825.42
7.1.50.0120.01025.05
7.1.40.0140.00824.91
7.1.30.0100.01224.99
7.1.20.0140.01025.05
7.1.10.0060.00816.19
7.1.00.0060.00916.13
7.0.330.0040.00415.18
7.0.320.0030.00715.34
7.0.310.0040.00415.43
7.0.300.0030.00615.32
7.0.290.0000.00915.07
7.0.280.0070.00715.17
7.0.270.0040.00915.46
7.0.260.0030.01015.35
7.0.250.0030.00615.43
7.0.240.0030.01215.39
7.0.230.0090.00615.35
7.0.220.0100.00315.46
7.0.210.0000.00915.50
7.0.200.0100.00715.81
7.0.190.0040.00716.12
7.0.180.0040.01015.89
7.0.170.0080.00715.90
7.0.160.0020.01115.62
7.0.150.0080.00615.76
7.0.140.0040.00815.84
7.0.130.0060.00815.76
7.0.120.0050.00915.79
7.0.110.0140.00315.95
7.0.100.0100.00815.75
7.0.90.0080.00715.83
7.0.80.0040.01015.92
7.0.70.0080.00515.84
7.0.60.0050.00815.65
7.0.50.0090.00715.86
7.0.40.0050.00914.98
7.0.30.0060.00814.94
7.0.20.0060.00714.69
7.0.10.0080.00814.84
7.0.00.0060.01114.83
5.6.400.0040.00814.38
5.6.390.0040.00814.27
5.6.380.0090.00314.31
5.6.370.0030.01414.07
5.6.360.0110.00413.89
5.6.350.0000.01014.02
5.6.340.0060.00314.04
5.6.330.0030.01014.23
5.6.320.0000.01214.20
5.6.310.0070.00714.21
5.6.300.0000.01314.41
5.6.290.0060.00914.29
5.6.280.0000.01514.23
5.6.270.0030.01314.29
5.6.260.0110.00314.12
5.6.250.0120.00614.09
5.6.240.0040.01214.05
5.6.230.0070.00314.13
5.6.220.0050.00514.07
5.6.210.0080.00814.27
5.6.200.0030.01014.41
5.6.190.0030.00613.88
5.6.180.0000.01714.09
5.6.170.0100.00014.02
5.6.160.0060.00314.06
5.6.150.0040.00813.99
5.6.140.0100.00314.20
5.6.130.0000.01414.14
5.6.120.0120.00014.57
5.6.110.0040.01114.41
5.6.100.0160.00314.13
5.6.90.0060.01314.30
5.6.80.0120.00614.11
5.6.70.0060.00913.80
5.6.60.0090.00913.95
5.6.50.0040.01414.27
5.6.40.0030.01014.29
5.6.30.0070.00713.99
5.6.20.0000.01214.39
5.6.10.0000.01714.16
5.6.00.0060.00314.17

preferences:
38.77 ms | 400 KiB | 5 Q