3v4l.org

run code in 300+ PHP versions simultaneously
<?php $some_string = "ннннн ннннн"; $arra_c = array("ASCII", "Windows-1252", "ISO-8859-15", "ISO-8859-1", "ISO-8859-6", "CP1256"); foreach($arra_c as $k => $v){ var_dump(iconv("UTF-8", $v, $some_string)); } var_dump(mb_detect_encoding($some_string)); var_dump(strlen(json_encode(array('message' => $some_string))));

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.20.0030.00617.93
8.4.10.0040.00417.74
8.3.140.0150.00316.65
8.3.130.0030.00616.74
8.3.120.0000.00919.13
8.3.110.0030.00620.94
8.3.100.0030.00616.86
8.3.90.0110.00316.70
8.3.80.0030.00618.68
8.3.70.0120.00316.75
8.3.60.0140.00318.68
8.3.50.0120.00821.21
8.3.40.0120.00318.84
8.3.30.0070.01320.36
8.3.20.0040.00420.20
8.3.10.0080.00021.79
8.3.00.0090.00022.25
8.2.260.0070.00716.58
8.2.250.0040.00418.40
8.2.240.0040.00418.76
8.2.230.0040.00422.58
8.2.220.0150.00024.06
8.2.210.0030.00626.77
8.2.200.0030.00616.88
8.2.190.0090.00616.88
8.2.180.0090.00625.92
8.2.170.0120.00322.96
8.2.160.0070.00720.35
8.2.150.0120.00324.18
8.2.140.0120.00324.66
8.2.130.0050.00226.16
8.2.120.0030.00519.78
8.2.110.0060.00322.02
8.2.100.0060.00618.03
8.2.90.0000.00819.20
8.2.80.0050.00319.38
8.2.70.0040.00417.75
8.2.60.0030.00618.05
8.2.50.0000.00818.07
8.2.40.0030.00517.97
8.2.30.0040.00418.25
8.2.20.0050.00217.66
8.2.10.0000.00817.72
8.2.00.0040.00417.81
8.1.310.0070.01116.58
8.1.300.0030.00618.59
8.1.290.0060.00318.88
8.1.280.0110.00325.92
8.1.270.0040.00424.66
8.1.260.0050.00326.35
8.1.250.0030.01028.09
8.1.240.0060.00323.84
8.1.230.0030.00819.07
8.1.220.0040.00417.78
8.1.210.0050.00318.77
8.1.200.0100.00017.35
8.1.190.0050.00317.52
8.1.180.0040.00420.25
8.1.170.0060.00318.54
8.1.160.0040.00422.08
8.1.150.0060.00318.65
8.1.140.0070.00017.57
8.1.130.0050.00317.89
8.1.120.0000.00917.52
8.1.110.0000.00717.39
8.1.100.0050.00217.50
8.1.90.0000.00717.57
8.1.80.0000.00717.52
8.1.70.0030.00317.48
8.1.60.0000.00817.70
8.1.50.0000.00917.56
8.1.40.0000.00817.59
8.1.30.0040.00417.70
8.1.20.0040.00417.72
8.1.10.0030.00517.69
8.1.00.0030.00617.56
8.0.300.0000.00718.77
8.0.290.0050.00217.18
8.0.280.0000.00718.41
8.0.270.0030.00317.37
8.0.260.0030.00316.95
8.0.250.0040.00417.10
8.0.240.0030.00617.03
8.0.230.0070.00016.93
8.0.220.0000.00717.00
8.0.210.0030.00317.02
8.0.200.0110.00017.05
8.0.190.0000.00717.04
8.0.180.0030.00517.06
8.0.170.0040.00417.04
8.0.160.0000.00717.00
8.0.150.0070.00016.86
8.0.140.0050.00216.91
8.0.130.0050.00013.36
8.0.120.0030.00617.09
8.0.110.0080.00317.23
8.0.100.0000.00917.16
8.0.90.0000.00917.20
8.0.80.0100.01017.23
8.0.70.0050.00517.26
8.0.60.0100.00017.21
8.0.50.0050.00517.27
8.0.30.0110.01017.37
8.0.20.0110.01417.40
8.0.10.0000.00917.12
8.0.00.0080.01216.93
7.4.330.0000.00515.00
7.4.320.0000.00716.43
7.4.300.0030.00316.65
7.4.290.0000.00716.55
7.4.280.0000.00816.67
7.4.270.0070.00016.71
7.4.260.0000.00716.57
7.4.250.0030.00716.68
7.4.240.0040.00416.85
7.4.230.0000.00816.82
7.4.220.0070.01416.79
7.4.210.0080.00816.84
7.4.200.0060.00316.69
7.4.190.0000.00916.74
7.4.160.0040.01516.62
7.4.150.0100.01017.40
7.4.140.0120.01017.86
7.4.130.0080.01316.73
7.4.120.0090.01616.78
7.4.110.0040.01516.83
7.4.100.0170.00316.82
7.4.90.0120.00816.86
7.4.80.0140.01119.39
7.4.70.0110.01116.53
7.4.60.0110.00916.72
7.4.50.0030.01016.54
7.4.40.0120.00919.46
7.4.30.0150.00816.57
7.4.20.0100.01016.54
7.4.10.0100.01316.47
7.4.00.0100.00916.01
7.3.330.0030.00213.17
7.3.320.0000.00513.25
7.3.310.0040.00416.67
7.3.300.0090.00016.52
7.3.290.0180.00016.68
7.3.280.0100.01116.68
7.3.270.0090.01117.40
7.3.260.0130.00716.81
7.3.250.0100.01116.63
7.3.240.0100.01016.91
7.3.230.0170.00316.64
7.3.210.0070.01316.64
7.3.200.0060.01417.01
7.3.190.0150.00616.58
7.3.180.0080.01216.66
7.3.170.0100.01016.46
7.3.160.0100.01016.57
7.3.150.0080.01216.61
7.3.140.0130.00716.60
7.3.130.0130.00916.56
7.3.120.0050.01315.74
7.3.110.0080.01316.49
7.3.100.0100.01116.39
7.3.90.0160.01316.69
7.3.80.0070.02016.39
7.3.70.0150.01216.49
7.3.60.0130.01116.57
7.3.50.0080.01516.30
7.3.40.0120.01516.55
7.3.30.0100.01016.50
7.3.20.0150.00718.29
7.3.10.0090.01718.34
7.3.00.0130.01318.32
7.2.330.0100.01016.94
7.2.320.0190.00816.87
7.2.310.0100.01116.57
7.2.300.0130.00716.77
7.2.290.0120.00816.86
7.2.280.0080.01216.69
7.2.270.0060.01616.67
7.2.260.0120.01516.96
7.2.250.0080.01716.49
7.2.240.0030.01616.89
7.2.230.0070.01516.50
7.2.220.0150.01116.61
7.2.210.0170.00716.57
7.2.200.0120.01516.75
7.2.190.0160.01316.57
7.2.180.0110.01116.53
7.2.170.0120.00916.59
7.2.160.0030.03016.59
7.2.150.0090.01318.46
7.2.140.0110.01818.63
7.2.130.0060.01918.33
7.2.120.0190.01018.28
7.2.110.0160.01418.44
7.2.100.0140.01018.36
7.2.90.0080.02018.81
7.2.80.0160.01318.55
7.2.70.0120.01218.54
7.2.60.0210.00817.69
7.2.50.0170.00918.42
7.2.40.0280.00618.52
7.2.30.0150.01518.50
7.2.20.0130.01318.49
7.2.10.0120.01818.32
7.2.00.0190.01118.39
7.1.330.0070.01417.53
7.1.320.0240.01017.63
7.1.310.0270.00517.63
7.1.300.0200.01217.41
7.1.290.0260.01017.70
7.1.280.0230.00917.51
7.1.270.0230.00917.55
7.1.260.0180.01817.68
7.1.250.0190.01617.75
7.1.240.0180.01817.57
7.1.230.0340.00617.57
7.1.220.0240.01117.69
7.1.210.0250.01117.84
7.1.200.0170.01116.78
7.1.190.0260.01117.66
7.1.180.0150.01917.62
7.1.170.0160.02417.53
7.1.160.0200.01517.82
7.1.150.0290.01117.55
7.1.140.0260.01317.63
7.1.130.0310.00817.56
7.1.120.0280.01317.86
7.1.110.0290.01317.54
7.1.100.0320.01017.73
7.1.90.0300.01117.80
7.1.80.0260.01517.59
7.1.70.0240.00317.52
7.1.60.0140.01618.41
7.1.50.0140.01917.35
7.1.40.0250.01417.90
7.1.30.0220.01317.57
7.1.20.0190.01517.50
7.1.10.0290.00517.65
7.1.00.0180.03820.14
7.0.330.0180.01817.21
7.0.320.0240.01417.44
7.0.310.0280.00817.61
7.0.300.0210.02117.29
7.0.290.0410.00017.08
7.0.280.0270.01217.26
7.0.270.0290.01017.25
7.0.260.0250.01817.18
7.0.250.0190.02517.42
7.0.240.0310.00617.27
7.0.230.0280.00917.44
7.0.220.0300.01117.43
7.0.210.0240.01617.23
7.0.200.0160.01117.19
7.0.190.0190.01717.24
7.0.180.0170.01417.27
7.0.170.0230.00817.31
7.0.160.0220.00917.44
7.0.150.0230.00917.42
7.0.140.0140.04319.91
7.0.130.0230.01017.44
7.0.120.0220.01317.44
7.0.110.0220.01417.32
7.0.100.0240.01017.46
7.0.90.0400.04618.58
7.0.80.0410.04518.63
7.0.70.0370.04818.66
7.0.60.0390.04718.64
7.0.50.0310.05418.92
7.0.40.0190.02718.86
7.0.30.0160.03318.81
7.0.20.0110.05318.74
7.0.10.0130.04318.77
7.0.00.0150.04618.74
5.6.400.0190.01516.26
5.6.390.0190.01616.22
5.6.380.0260.01216.35
5.6.370.0290.01516.03
5.6.360.0190.02216.25
5.6.350.0150.02616.00
5.6.340.0200.01716.24
5.6.330.0230.02215.97
5.6.320.0270.01316.14
5.6.310.0200.02316.12
5.6.300.0220.01115.88
5.6.290.0180.01816.05
5.6.280.0080.05118.61
5.6.270.0330.01016.16
5.6.260.0200.01916.05
5.6.250.0250.01316.34
5.6.240.0090.05618.34
5.6.230.0180.04218.28
5.6.220.0180.03518.41
5.6.210.0150.05018.42
5.6.200.0150.02818.65
5.6.190.0150.04718.68
5.6.180.0150.04918.57
5.6.170.0080.05718.69
5.6.160.0180.04518.62
5.6.150.0130.04718.58
5.6.140.0190.04118.81
5.6.130.0200.04718.75
5.6.120.0200.04518.72
5.6.110.0090.05318.77
5.6.100.0120.04418.80
5.6.90.0110.05218.70
5.6.80.0080.03218.29
5.6.70.0100.03618.39
5.6.60.0120.02618.36
5.6.50.0130.02618.23
5.6.40.0170.02418.18
5.6.30.0100.02918.34
5.6.20.0130.02518.40
5.6.10.0130.03118.34
5.6.00.0140.02318.25
5.5.380.0130.04718.29
5.5.370.0070.05318.35
5.5.360.0130.03518.20
5.5.350.0200.04718.40
5.5.340.0190.03318.57
5.5.330.0190.04418.49
5.5.320.0190.04918.47
5.5.310.0180.04218.66
5.5.300.0190.04818.60
5.5.290.0120.03518.58
5.5.280.0170.04518.59
5.5.270.0120.04418.50
5.5.260.0130.04818.57
5.5.250.0210.02418.45
5.5.240.0110.03818.33
5.5.230.0110.02618.22
5.5.220.0110.02718.03
5.5.210.0110.04118.20
5.5.200.0090.03018.07
5.5.190.0190.02018.23
5.5.180.0110.02418.17
5.5.170.0170.01716.02
5.5.160.0130.02818.25
5.5.150.0120.03018.27
5.5.140.0120.02818.09
5.5.130.0120.03718.15
5.5.120.0090.02818.21
5.5.110.0100.03018.14
5.5.100.0130.02318.01
5.5.90.0110.02518.19
5.5.80.0100.02918.04
5.5.70.0100.02718.20
5.5.60.0110.02618.08
5.5.50.0160.02218.18
5.5.40.0100.02718.13
5.5.30.0140.02418.14
5.5.20.0100.04918.20
5.5.10.0110.03918.14
5.5.00.0100.02918.16
5.4.450.0050.03416.06
5.4.440.0120.04516.08
5.4.430.0160.04116.16
5.4.420.0130.04115.95
5.4.410.0090.02815.95
5.4.400.0080.02215.75
5.4.390.0090.02315.84
5.4.380.0120.02615.80
5.4.370.0120.03015.87
5.4.360.0120.02115.92
5.4.350.0070.02515.83
5.4.340.0090.02415.80
5.4.330.0150.00712.52
5.4.320.0120.02015.85
5.4.310.0140.03815.83
5.4.300.0120.02015.77
5.4.290.0080.02115.85
5.4.280.0140.01815.92
5.4.270.0070.02415.86
5.4.260.0100.02315.87
5.4.250.0070.02815.80
5.4.240.0090.02315.91
5.4.230.0110.02015.99
5.4.220.0100.02515.92
5.4.210.0090.02216.00
5.4.200.0110.02515.86
5.4.190.0080.02315.95
5.4.180.0100.02015.86
5.4.170.0120.02315.80
5.4.160.0100.03915.82
5.4.150.0100.02315.87
5.4.140.0140.02014.56
5.4.130.0050.02514.45
5.4.120.0120.01814.49
5.4.110.0110.02014.60
5.4.100.0100.02814.54
5.4.90.0050.02314.60
5.4.80.0080.02414.55
5.4.70.0080.04314.54
5.4.60.0130.03914.51
5.4.50.0150.04214.48
5.4.40.0220.05014.48
5.4.30.0140.04814.54
5.4.20.0100.04614.55
5.4.10.0180.03314.53
5.4.00.0120.04114.24
5.3.290.0140.03514.16
5.3.280.0070.03014.04
5.3.270.0120.02814.03
5.3.260.0080.02614.08
5.3.250.0060.02414.00
5.3.240.0110.02413.98
5.3.230.0090.02814.00
5.3.220.0110.02213.96
5.3.210.0070.02713.97
5.3.200.0140.01714.07
5.3.190.0060.03614.04
5.3.180.0080.03114.04
5.3.170.0060.04014.05
5.3.160.0120.04714.12
5.3.150.0220.04413.99
5.3.140.0220.04713.97
5.3.130.0070.03513.97
5.3.120.0100.04713.93
5.3.110.0170.03813.97
5.3.100.0080.04513.78
5.3.90.0110.04013.69
5.3.80.0070.03513.70
5.3.70.0100.04013.69
5.3.60.0210.04713.75
5.3.50.0170.02613.69
5.3.40.0130.03913.65
5.3.30.0080.04113.65
5.3.20.0090.04313.56
5.3.10.0130.04413.42
5.3.00.0110.03613.48
5.2.170.0120.03211.86
5.2.160.0070.03011.72
5.2.150.0080.03511.78
5.2.140.0100.02211.73
5.2.130.0120.03511.76
5.2.120.0060.04211.91
5.2.110.0090.03811.79
5.2.100.0100.01911.75
5.2.90.0080.02611.69
5.2.80.0130.03011.70
5.2.70.0090.03711.62
5.2.60.0090.04111.73
5.2.50.0070.03111.76
5.2.40.0120.03111.70
5.2.30.0120.02911.57
5.2.20.0040.03611.61
5.2.10.0100.03411.58
5.2.00.0090.02911.43
5.1.60.0060.03010.97
5.1.50.0050.02611.09
5.1.40.0080.02610.97
5.1.30.0070.03611.23
5.1.20.0100.03011.26
5.1.10.0090.03411.10
5.1.00.0110.02911.10
5.0.50.0020.03510.36
5.0.40.0070.02910.28
5.0.30.0060.03810.12
5.0.20.0040.01910.19
5.0.10.0030.01810.19
5.0.00.0040.04310.16
4.4.90.0070.0169.99
4.4.80.0060.0179.99
4.4.70.0050.0129.99
4.4.60.0000.0159.99
4.4.50.0110.0209.99
4.4.40.0040.0209.99
4.4.30.0070.0159.99
4.4.20.0020.0179.99
4.4.10.0040.0129.99
4.4.00.0060.0289.99
4.3.110.0060.0179.99
4.3.100.0050.0139.99
4.3.90.0050.0089.99
4.3.80.0030.0289.99
4.3.70.0070.0199.99
4.3.60.0100.0109.99
4.3.50.0030.0239.99
4.3.40.0060.0229.99
4.3.30.0030.0139.99
4.3.20.0020.0229.99
4.3.10.0050.0159.99
4.3.00.0040.0109.99

preferences:
80.92 ms | 403 KiB | 5 Q