3v4l.org

run code in 300+ PHP versions simultaneously
<?php $utfchar = chr(0xC3).chr(0x89); // U+009C in UTF-8 $csv = $utfchar."x".$utfchar."x\n"; $file = fopen('php://memory', 'w+'); fputs($file, $csv); rewind($file); $data = fgetcsv($file); for ($i = 0; $i < strlen($data[0]); $i++) { echo dechex(ord($data[0][$i])).' '; } echo "\n"; fclose($file); // expected: c3 89 78 c3 89 78 - "ÉxÉx" // actual: 78 c3 89 78 - "xÉx"

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.1.130.0030.00317.73
8.1.120.0000.00717.48
8.1.110.0000.00717.39
8.1.100.0040.00417.41
8.1.90.0020.00717.41
8.1.80.0000.00817.37
8.1.70.0000.00817.41
8.1.60.0000.00817.63
8.1.50.0060.00317.58
8.1.40.0030.00517.53
8.1.30.0000.00817.67
8.1.20.0000.00817.73
8.1.10.0030.00617.64
8.1.00.0050.00317.50
8.0.260.0030.00317.40
8.0.250.0030.00317.02
8.0.240.0040.00417.04
8.0.230.0000.00717.05
8.0.220.0030.00317.01
8.0.210.0070.00016.86
8.0.200.0030.00316.93
8.0.190.0060.00316.91
8.0.180.0040.00417.00
8.0.170.0080.00016.91
8.0.160.0070.00016.98
8.0.150.0050.00316.94
8.0.140.0000.00716.83
8.0.130.0000.00613.37
8.0.120.0030.00616.93
8.0.110.0040.00316.94
8.0.100.0040.00416.93
8.0.90.0000.00716.80
8.0.80.0060.01516.99
8.0.70.0000.00817.03
8.0.60.0040.00416.86
8.0.50.0000.00716.76
8.0.30.0050.01317.11
8.0.20.0120.00617.40
8.0.10.0000.00716.82
8.0.00.0060.01216.73
7.4.330.0030.00315.08
7.4.320.0040.00416.46
7.4.300.0000.00616.38
7.4.290.0030.00616.58
7.4.280.0070.00016.62
7.4.270.0050.00316.55
7.4.260.0040.00416.52
7.4.250.0070.00016.54
7.4.240.0030.00316.48
7.4.230.0040.00416.53
7.4.220.0040.01416.54
7.4.210.0070.01016.48
7.4.200.0000.00816.59
7.4.160.0110.00516.59
7.4.150.0100.00717.40
7.4.140.0070.01117.86
7.4.130.0110.00616.55
7.4.120.0140.00316.55
7.4.110.0080.01116.48
7.4.100.0060.01016.55
7.4.90.0060.01216.37
7.4.80.0110.00719.39
7.4.70.0090.00616.61
7.4.60.0060.01016.52
7.4.50.0040.00816.66
7.4.40.0070.01016.68
7.4.30.0060.01216.53
7.4.00.0060.00714.98
7.3.330.0070.00013.16
7.3.320.0040.00313.18
7.3.310.0040.00416.28
7.3.300.0060.00016.43
7.3.290.0000.00716.38
7.3.280.0080.01016.39
7.3.270.0110.00717.40
7.3.260.0100.01016.39
7.3.250.0050.01216.33
7.3.240.0110.00716.46
7.3.230.0090.01216.43
7.3.210.0080.00816.43
7.3.200.0090.00816.29
7.3.190.0180.00016.51
7.3.180.0100.01016.50
7.3.170.0070.01016.48
7.3.160.0100.00716.39
7.3.120.0000.01814.83
7.3.110.0030.01314.46
7.3.100.0030.01014.95
7.3.90.0100.00714.51
7.3.80.0060.00914.50
7.3.70.0070.00714.93
7.3.60.0070.01014.83
7.3.50.0070.00714.81
7.3.40.0070.00414.96
7.3.30.0060.00914.70
7.3.20.0060.00616.71
7.3.10.0040.00716.50
7.3.00.0090.00616.70
7.2.330.0060.01216.71
7.2.320.0100.00716.71
7.2.310.0100.01416.82
7.2.300.0090.02016.54
7.2.290.0090.00916.86
7.2.250.0030.01715.07
7.2.240.0060.01315.17
7.2.230.0030.00714.89
7.2.220.0030.01015.06
7.2.210.0090.00615.06
7.2.200.0070.01115.21
7.2.190.0000.01015.19
7.2.180.0030.01014.94
7.2.170.0040.00814.86
7.2.110.0140.00714.71
7.2.100.1750.01314.75
7.2.90.1360.01014.86
7.2.80.0340.00914.93
7.2.70.1000.01015.00
7.2.60.0540.01015.92
7.2.50.0170.01115.08
7.2.40.0360.01015.04
7.2.30.0170.01314.96
7.2.20.1610.01315.00
7.2.10.0900.00714.81
7.2.00.0120.00717.11
7.1.330.0100.00315.54
7.1.320.0040.01115.97
7.1.310.0000.01515.49
7.1.300.0070.00415.72
7.1.290.0130.00315.86
7.1.280.0070.01015.75
7.1.270.0000.01415.80
7.1.260.0030.00915.88
7.1.230.2910.00614.09
7.1.220.2960.01013.88
7.1.210.3100.00314.04
7.1.200.1430.00314.85
7.1.190.1230.00713.93
7.1.180.0770.01013.56
7.1.170.0610.00613.82
7.1.160.0180.00413.95
7.1.150.0060.00913.98
7.1.140.0590.01013.82
7.1.130.0180.00413.88
7.1.120.0130.00814.00
7.1.110.0700.00313.74
7.1.100.2890.00713.79
7.1.90.2200.00613.63
7.1.80.0280.00713.61
7.1.70.0750.00915.41
7.1.60.0790.01025.62
7.1.50.0610.01331.87
7.1.40.1660.01031.60
7.1.30.1220.01031.86
7.1.20.0990.01731.63
7.1.10.0140.00713.93
7.1.00.0550.03718.13
7.0.310.2090.00313.47
7.0.300.0630.00313.43
7.0.290.3790.00713.39
7.0.280.1130.00313.49
7.0.270.2530.01013.70
7.0.260.0230.01013.57
7.0.250.0930.00713.62
7.0.240.0190.00813.49
7.0.230.2060.00713.67
7.0.220.2070.01313.61
7.0.210.1270.00713.58
7.0.200.0400.00615.15
7.0.190.1690.01013.41
7.0.180.1250.01213.59
7.0.170.0290.01113.78
7.0.160.1350.00313.36
7.0.150.0670.01113.60
7.0.140.0630.00413.64
7.0.130.0580.00613.75
7.0.120.0180.03517.87
7.0.110.0110.04117.89
7.0.100.0570.04017.88
7.0.90.0170.03817.88
7.0.80.0240.04217.91
7.0.70.0150.03617.86
7.0.60.0150.03917.68
7.0.50.0130.04117.95
7.0.40.0110.03817.83
7.0.30.0150.03717.91
7.0.20.0350.03717.85
7.0.10.0120.03617.79
7.0.00.0100.03317.82
5.6.380.0060.00914.47
5.6.370.0110.01014.56
5.6.360.0060.01314.19
5.6.350.0120.00814.50
5.6.340.0090.01214.16
5.6.330.0140.00714.12
5.6.320.0150.00914.22
5.6.310.0090.01214.50
5.6.300.0110.01214.50
5.6.290.0190.00313.95
5.6.280.0160.00314.46
5.6.270.0070.01414.21
5.6.260.0090.03817.67
5.6.250.0090.03717.71
5.6.240.0000.05317.64
5.6.230.0090.04117.76
5.6.220.0070.03617.74
5.6.210.0110.03817.72
5.6.200.0130.03817.57
5.6.190.0090.03917.72
5.6.180.0140.03317.65
5.6.170.0030.04417.56
5.6.160.0110.03517.63
5.6.150.0050.04417.65
5.6.140.0050.04117.47
5.6.130.0120.03617.69
5.6.120.0120.03817.78
5.6.110.0070.04017.64
5.6.100.0140.03217.78
5.6.90.0130.03217.66
5.6.80.0070.04017.26
5.6.70.0090.03717.17
5.6.60.0030.04317.40
5.6.50.0110.03517.50
5.6.40.0060.04117.32
5.6.30.0080.04017.40
5.6.20.0110.03917.38
5.6.10.0100.03717.37
5.6.00.0140.03317.34
5.5.380.0090.03514.38
5.5.370.0050.03214.37
5.5.360.0050.04114.39
5.5.350.0110.03214.29
5.5.340.0080.03914.64
5.5.330.0080.03714.53
5.5.320.0020.04314.63
5.5.310.0080.03914.51
5.5.300.0100.03514.63
5.5.290.0040.04214.53
5.5.280.0070.04214.55
5.5.270.0060.03214.49
5.5.260.0080.03714.64
5.5.250.0090.03714.40
5.5.240.0020.04114.17
5.5.230.0020.04414.08
5.5.220.0100.03314.32
5.5.210.0000.04214.13
5.5.200.0000.04614.22
5.5.190.0050.04014.22
5.5.180.0060.03914.06
5.5.170.0140.00614.26
5.5.160.0060.03114.31
5.5.150.0050.03214.16
5.5.140.0080.03814.29
5.5.130.0050.03814.12
5.5.120.0050.03814.01
5.5.110.0080.03314.36
5.5.100.0060.03914.16
5.5.90.0050.03614.07
5.5.80.0070.02813.96
5.5.70.0060.04014.23
5.5.60.0060.03814.30
5.5.50.0040.03514.11
5.5.40.0040.03914.14
5.5.30.0090.03314.17
5.5.20.0000.04314.18
5.5.10.0000.04214.00
5.5.00.0050.03414.12
5.4.450.0070.03815.25
5.4.440.0040.04215.22
5.4.430.0040.03815.08
5.4.420.0070.03815.23
5.4.410.0080.03615.22
5.4.400.0030.03815.03
5.4.390.0060.03815.19
5.4.380.0020.03814.88
5.4.370.0090.03415.11
5.4.360.0130.03214.98
5.4.350.0070.03515.18
5.4.340.0060.03715.04
5.4.330.0070.00411.09
5.4.320.0050.03915.19
5.4.310.0090.03215.10
5.4.300.0060.03515.11
5.4.290.0090.03315.10
5.4.280.0050.04014.89
5.4.270.0070.03515.01
5.4.260.0070.03115.04
5.4.250.0080.03514.91
5.4.240.0050.03915.01
5.4.230.0060.03714.89
5.4.220.0050.03815.12
5.4.210.0070.03315.06
5.4.200.0030.04314.91
5.4.190.0100.03515.03
5.4.180.0050.03315.01
5.4.170.0040.03715.11
5.4.160.0050.03715.04
5.4.150.0090.03815.02
5.4.140.0060.03613.54
5.4.130.0040.03813.80
5.4.120.0030.03713.63
5.4.110.0020.03513.71
5.4.100.0080.03313.70
5.4.90.0110.02513.58
5.4.80.0060.03513.71
5.4.70.0060.03613.67
5.4.60.0090.02813.79
5.4.50.0090.03213.75
5.4.40.0080.03013.71
5.4.30.0060.03413.66
5.4.20.0050.03613.71
5.4.10.0050.02713.61
5.4.00.0060.03613.33
5.3.290.0050.03912.64
5.3.280.0070.03512.46
5.3.270.0050.03112.51
5.3.260.0070.03312.49
5.3.250.0060.03612.52
5.3.240.0060.03112.40
5.3.230.0050.03412.55
5.3.220.0060.03612.27
5.3.210.0030.03812.44
5.3.200.0040.03612.52
5.3.190.0060.03612.30
5.3.180.0000.04212.37
5.3.170.0090.03212.55
5.3.160.0060.03312.55
5.3.150.0000.04012.52
5.3.140.0050.03612.55
5.3.130.0060.03312.47
5.3.120.0050.03912.41
5.3.110.0080.03212.39
5.3.100.0080.03312.20
5.3.90.0080.03012.15
5.3.80.0110.03012.07
5.3.70.0050.03512.06
5.3.60.0060.03412.25
5.3.50.0040.03712.20
5.3.40.0050.03212.00
5.3.30.0080.03212.14
5.3.20.0070.03311.89
5.3.10.0050.03511.83
5.3.00.0070.03311.88
5.2.170.0070.02611.29
5.2.160.0050.02911.27
5.2.150.0060.03011.15
5.2.140.0030.03011.15
5.2.130.0080.02611.23
5.2.120.0020.03111.26
5.2.110.0070.02711.26
5.2.100.0070.02411.24
5.2.90.0040.02711.23
5.2.80.0040.03011.09
5.2.70.0050.02811.19
5.2.60.0080.02711.14
5.2.50.0030.03011.18
5.2.40.0050.02611.14
5.2.30.0060.02511.19
5.2.20.0030.02911.18
5.2.10.0050.03011.16
5.2.00.0060.02811.10
5.1.60.0050.02010.82
5.1.50.0030.02410.82
5.1.40.0040.02010.82
5.1.30.0050.02710.91
5.1.20.0000.02710.82
5.1.10.0030.02510.82
5.1.00.0020.02710.82
5.0.50.0030.02110.82
5.0.40.0010.02310.82
5.0.30.0010.03310.82
5.0.20.0050.01810.82
5.0.10.0030.02210.82
5.0.00.0040.02710.82
4.4.90.0030.01510.82
4.4.80.0020.01710.82
4.4.70.0000.01910.82
4.4.60.0030.01310.82
4.4.50.0040.01310.82
4.4.40.0070.02210.82
4.4.30.0020.01510.82
4.4.20.0030.01610.82
4.4.10.0030.01510.82
4.4.00.0020.02610.82
4.3.110.0050.01710.82
4.3.100.0030.01610.82
4.3.90.0040.01510.82
4.3.80.0030.02310.82
4.3.70.0020.01710.82
4.3.60.0030.01610.82
4.3.50.0030.01810.82
4.3.40.0000.02710.82
4.3.30.0020.01810.82
4.3.20.0020.01810.82
4.3.10.0000.01810.82
4.3.00.0000.01810.82

preferences:
14.46 ms | 406 KiB | 5 Q