3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = "AARON'S INC                  "; /*$array = str_split($string); foreach($array as $char) { var_dump($char); var_dump(ord($char)); printf("\n\n"); } */ $converted = mb_convert_encoding($string, "ASCII"); var_dump($converted);

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.00616.38
8.3.50.0090.00821.20
8.3.40.0040.01218.54
8.3.30.0030.01018.92
8.3.20.0030.00620.01
8.3.10.0030.00523.64
8.3.00.0080.00019.13
8.2.180.0120.00916.50
8.2.170.0030.01422.96
8.2.160.0130.00720.47
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0040.00422.19
8.2.110.0090.00019.39
8.2.100.0070.00417.72
8.2.90.0000.00819.26
8.2.80.0000.00817.97
8.2.70.0030.00517.50
8.2.60.0050.00217.90
8.2.50.0080.00018.07
8.2.40.0040.00419.82
8.2.30.0000.00818.02
8.2.20.0060.00317.68
8.2.10.0000.00817.99
8.2.00.0070.00017.74
8.1.280.0150.00625.92
8.1.270.0050.00322.05
8.1.260.0030.00626.35
8.1.250.0000.00828.09
8.1.240.0040.00420.87
8.1.230.0100.00017.42
8.1.220.0030.00517.77
8.1.210.0080.00018.77
8.1.200.0040.00417.13
8.1.190.0000.00817.23
8.1.180.0000.00818.10
8.1.170.0000.00818.57
8.1.160.0070.00022.00
8.1.150.0000.00718.88
8.1.140.0000.00717.35
8.1.130.0000.00717.73
8.1.120.0030.00517.34
8.1.110.0000.00717.45
8.1.100.0000.00717.36
8.1.90.0050.00317.37
8.1.80.0070.00017.48
8.1.70.0030.00317.34
8.1.60.0040.00417.46
8.1.50.0060.00317.55
8.1.40.0000.00717.40
8.1.30.0030.00617.69
8.1.20.0020.00517.53
8.1.10.0070.00017.50
8.1.00.0040.00417.48
8.0.300.0040.00418.77
8.0.290.0040.00416.63
8.0.280.0030.00318.37
8.0.270.0030.00317.16
8.0.260.0040.00417.26
8.0.250.0000.00716.89
8.0.240.0000.00716.83
8.0.230.0000.00716.95
8.0.220.0060.00016.88
8.0.210.0050.00316.88
8.0.200.0020.00516.93
8.0.190.0030.00616.92
8.0.180.0000.00816.92
8.0.170.0030.00616.94
8.0.160.0030.00616.79
8.0.150.0040.00416.82
8.0.140.0000.00716.82
8.0.130.0000.00513.35
8.0.120.0000.00816.75
8.0.110.0070.00016.71
8.0.100.0040.00316.71
8.0.90.0020.00516.79
8.0.80.0100.00616.92
8.0.70.0000.00716.77
8.0.60.0050.00216.83
8.0.50.0050.00216.90
8.0.30.0100.01217.01
8.0.20.0110.00817.40
8.0.10.0050.00216.97
8.0.00.0040.01416.60
7.4.330.0050.00015.12
7.4.320.0000.00616.63
7.4.300.0030.00316.49
7.4.290.0060.00316.63
7.4.280.0030.00316.56
7.4.270.0070.00016.41
7.4.260.0040.00416.60
7.4.250.0000.00716.53
7.4.240.0040.00316.55
7.4.230.0000.00716.45
7.4.220.0040.01616.60
7.4.210.0090.00416.69
7.4.200.0000.00716.48
7.4.160.0130.00316.40
7.4.150.0100.00717.40
7.4.140.0120.00717.86
7.4.130.0100.00816.47
7.4.120.0130.00716.41
7.4.110.0140.00416.46
7.4.100.0120.00616.27
7.4.90.0030.01316.32
7.4.80.0120.01019.39
7.4.70.0160.00716.43
7.4.60.0060.00916.35
7.4.50.0060.00316.30
7.4.40.0070.01016.36
7.4.30.0140.01116.50
7.4.00.0070.00714.88
7.3.330.0050.00013.18
7.3.320.0040.00313.05
7.3.310.0000.00716.34
7.3.300.0000.00716.11
7.3.290.0060.01316.16
7.3.280.0070.00916.24
7.3.270.0090.00917.40
7.3.260.0160.00016.34
7.3.250.0090.00716.34
7.3.240.0170.00416.39
7.3.230.0100.00616.39
7.3.210.0070.01116.30
7.3.200.0110.00819.39
7.3.190.0090.00616.51
7.3.180.0120.00416.11
7.3.170.0060.01016.43
7.3.160.0100.01116.30
7.2.330.0120.00616.66
7.2.320.0100.00716.70
7.2.310.0110.00716.47
7.2.300.0030.01516.43
7.2.290.0110.00716.61
7.2.60.0160.01316.70
7.1.200.0060.00315.71
7.1.100.0100.00318.17
7.1.70.0000.00717.18
7.1.60.0070.01419.32
7.1.50.0090.01516.88
7.1.00.0030.07722.30
7.0.200.0070.00316.39
7.0.140.0070.07021.92
7.0.60.0130.07719.94
7.0.50.0030.08017.77
7.0.40.0170.06020.08
7.0.30.0200.04320.18
7.0.20.0300.04320.21
7.0.10.0130.03720.00
7.0.00.0030.08720.19
5.6.280.0070.07021.06
5.6.210.0100.08020.72
5.6.200.0000.09318.19
5.6.190.0130.08020.77
5.6.180.0130.04020.39
5.6.170.0200.04720.54
5.6.160.0200.07020.51
5.6.150.0070.08018.16
5.6.140.0070.08018.11
5.6.130.0070.08018.11
5.6.120.0100.06320.98
5.6.110.0000.10021.00
5.6.100.0000.05321.06
5.6.90.0030.08321.09
5.6.80.0170.07020.37
5.6.70.4530.04020.37
5.5.350.0130.05720.43
5.5.340.0130.07317.93
5.5.330.0030.04320.44
5.5.320.0400.06320.30
5.5.310.0200.05320.31
5.5.300.0030.03717.91
5.5.290.0070.07317.91
5.5.280.0070.04020.79
5.5.270.0130.07720.76
5.5.260.0170.07320.86
5.5.250.0070.03720.57
5.5.240.0270.07720.18
5.4.450.0370.06719.64
5.4.440.0470.06019.36
5.4.430.0800.04319.41
5.4.420.0630.00019.34
5.4.410.0600.00019.16
5.4.400.0600.00019.16
5.4.390.0630.00019.07
5.4.380.0630.00019.06
5.4.370.0600.00019.00
5.4.360.0800.00019.16
5.4.350.0630.00019.07
5.4.340.0060.03311.97
5.4.320.0070.04212.45
5.4.310.0060.03712.45
5.4.300.0060.03612.45
5.4.290.0060.03912.45
5.4.280.0070.03612.34
5.4.270.0040.03912.35
5.4.260.0040.04212.35
5.4.250.0050.03912.35
5.4.240.0020.03912.35
5.4.230.0070.03512.34
5.4.220.0090.04712.34
5.4.210.0060.03412.34
5.4.200.0050.03712.34
5.4.190.0060.04212.34
5.4.180.0060.03412.34
5.4.170.0080.04112.35
5.4.160.0070.03412.34
5.4.150.0030.03812.34
5.4.140.0090.03312.02
5.4.130.0100.03612.01
5.4.120.0070.03311.97
5.4.110.0080.03311.96
5.4.100.0080.03211.96
5.4.90.0070.03511.96
5.4.80.0060.03611.96
5.4.70.0030.03711.96
5.4.60.0030.03711.96
5.4.50.0070.03411.96
5.4.40.0050.04811.95
5.4.30.0050.03711.95
5.4.20.0040.03711.95
5.4.10.0080.03311.95
5.4.00.0090.03811.44
5.3.290.0070.04612.80
5.3.280.0060.03912.71
5.3.270.0040.04112.72
5.3.260.0120.04112.72
5.3.250.0110.03612.72
5.3.240.0090.03712.72
5.3.230.0040.03912.70
5.3.220.0060.04612.68
5.3.210.0060.03812.68
5.3.200.0060.03712.68
5.3.190.0070.04412.68
5.3.180.0070.03812.68
5.3.170.0080.03512.67
5.3.160.0080.03312.67
5.3.150.0040.04412.67
5.3.140.0050.03612.66
5.3.130.0080.03512.65
5.3.120.0050.04012.66
5.3.110.0050.03912.66
5.3.100.0040.03812.12
5.3.90.0060.03512.09
5.3.80.0050.03712.07
5.3.70.0050.03612.07
5.3.60.0070.03512.07
5.3.50.0070.03412.00
5.3.40.0090.04212.00
5.3.30.0050.03511.94
5.3.20.0060.04411.72
5.3.10.0040.04111.69
5.3.00.0090.03711.67
5.2.170.0040.0349.17
5.2.160.0060.0349.18
5.2.150.0060.0379.18
5.2.140.0030.0319.18
5.2.130.0040.0299.14
5.2.120.0040.0289.14
5.2.110.0070.0269.14
5.2.100.0060.0269.13
5.2.90.0070.0329.13
5.2.80.0040.0359.13
5.2.70.0060.0389.13
5.2.60.0050.0309.08
5.2.50.0040.0339.05
5.2.40.0060.0269.03
5.2.30.0050.0289.00
5.2.20.0060.0268.99
5.2.10.0040.0288.91
5.2.00.0060.0328.77
5.1.60.0070.0208.06
5.1.50.0070.0208.06
5.1.40.0040.0238.04
5.1.30.0060.0238.39
5.1.20.0050.0328.41
5.1.10.0060.0238.13
5.1.00.0060.0338.13
5.0.50.0020.0286.61
5.0.40.0070.0156.47
5.0.30.0010.0336.28
5.0.20.0080.0216.26
5.0.10.0040.0206.23
5.0.00.0030.0306.23
4.4.90.0030.0144.78
4.4.80.0020.0154.75
4.4.70.0010.0174.75
4.4.60.0020.0154.76
4.4.50.0040.0134.77
4.4.40.0010.0274.71
4.4.30.0030.0154.75
4.4.20.0010.0174.84
4.4.10.0020.0164.84
4.4.00.0050.0224.76
4.3.110.0020.0164.67
4.3.100.0020.0174.66
4.3.90.0020.0154.63
4.3.80.0020.0244.58
4.3.70.0030.0134.63
4.3.60.0020.0144.63
4.3.50.0040.0144.62
4.3.40.0020.0244.54
4.3.30.0000.0173.28
4.3.20.0020.0163.26
4.3.10.0010.0163.22
4.3.00.0130.0236.57

preferences:
48.24 ms | 401 KiB | 5 Q