3v4l.org

run code in 300+ PHP versions simultaneously
<?php if ( !function_exists( 'mb_convert_encoding' ) ) { exit('[mbstring not loaded]'); } $oldSub = mb_substitute_character(); mb_substitute_character( 0xfffd ); $res = mb_convert_encoding( "\xf4\x90\x80\x80 \xc2", 'UTF-8', 'UTF-8' ); mb_substitute_character( $oldSub ); var_dump( bin2hex( $res ) );

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.0140.00718.43
8.3.50.0080.01222.05
8.3.40.0040.01118.71
8.3.30.0100.00320.20
8.3.20.0000.00720.14
8.3.10.0040.00422.10
8.3.00.0030.00522.46
8.2.180.0070.01418.16
8.2.170.0150.00022.96
8.2.160.0000.01420.22
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0090.00026.16
8.2.120.0080.00019.77
8.2.110.0030.00522.27
8.2.100.0060.00719.51
8.2.90.0040.00417.75
8.2.80.0040.00418.64
8.2.70.0040.00417.93
8.2.60.0050.00317.93
8.2.50.0050.00618.10
8.2.40.0040.00420.59
8.2.30.0020.00518.12
8.2.20.0030.00517.54
8.2.10.0000.00717.56
8.2.00.0090.00017.62
8.1.280.0070.01325.92
8.1.270.0080.00024.66
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0100.00020.35
8.1.230.0090.00319.45
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0030.00517.48
8.1.190.0050.00317.23
8.1.180.0040.00418.10
8.1.170.0000.00818.63
8.1.160.0040.00722.09
8.1.150.0060.00318.70
8.1.140.0050.00317.55
8.1.130.0030.00317.86
8.1.120.0000.00817.54
8.1.110.0000.00917.51
8.1.100.0040.00417.57
8.1.90.0060.00317.59
8.1.80.0040.00417.40
8.1.70.0040.00417.38
8.1.60.0040.00417.53
8.1.50.0000.00817.50
8.1.40.0040.00417.58
8.1.30.0040.00417.64
8.1.20.0030.00517.63
8.1.10.0070.00017.51
8.1.00.0000.00817.46
8.0.300.0000.00718.77
8.0.290.0040.00416.88
8.0.280.0030.00318.50
8.0.270.0040.00417.37
8.0.260.0070.00016.97
8.0.250.0000.00717.07
8.0.240.0030.00516.95
8.0.230.0070.00017.02
8.0.220.0000.00816.99
8.0.210.0050.00316.98
8.0.200.0030.00317.02
8.0.190.0040.00417.05
8.0.180.0000.00716.99
8.0.170.0040.00416.98
8.0.160.0040.00416.84
8.0.150.0070.00016.87
8.0.140.0030.00316.91
8.0.130.0050.00013.42
8.0.120.0000.00716.93
8.0.110.0000.00816.90
8.0.100.0070.00016.92
8.0.90.0050.00316.75
8.0.80.0030.01217.01
8.0.70.0040.00416.81
8.0.60.0000.00816.89
8.0.50.0080.00016.86
8.0.30.0080.01217.11
8.0.20.0140.00517.40
8.0.10.0000.00716.79
8.0.00.0090.01116.75
7.4.330.0000.00515.07
7.4.320.0060.00016.56
7.4.300.0030.00316.57
7.4.290.0000.00716.45
7.4.280.0000.00716.66
7.4.270.0030.00316.55
7.4.260.0000.00716.57
7.4.250.0000.00816.42
7.4.240.0010.00716.56
7.4.230.0000.00716.46
7.4.220.0110.00516.50
7.4.210.0070.00916.57
7.4.200.0020.00516.47
7.4.190.0070.00016.75
7.4.160.0040.01116.50
7.4.150.0140.01017.40
7.4.140.0110.00617.86
7.4.130.0140.00316.52
7.4.120.0090.01116.50
7.4.110.0070.01016.62
7.4.100.0110.01216.36
7.4.90.0060.01216.53
7.4.80.0110.00719.39
7.4.70.0090.01216.37
7.4.60.0170.00016.33
7.4.50.0060.00316.31
7.4.40.0030.01322.77
7.4.30.0040.01916.41
7.4.00.0040.01314.92
7.3.330.0050.00013.10
7.3.320.0000.00513.13
7.3.310.0000.00716.05
7.3.300.0030.00316.00
7.3.290.0060.01316.09
7.3.280.0130.00616.20
7.3.270.0090.00917.40
7.3.260.0100.01316.43
7.3.250.0110.01316.33
7.3.240.0090.00916.25
7.3.230.0120.01216.39
7.3.210.0060.01016.49
7.3.200.0120.00919.39
7.3.190.0030.01316.30
7.3.180.0040.01216.41
7.3.170.0110.00516.31
7.3.160.0030.01616.36
7.3.120.0110.00514.62
7.3.110.0060.01214.39
7.3.100.0060.00814.69
7.3.90.0060.00914.66
7.3.80.0060.00414.71
7.3.70.0030.00914.78
7.3.60.0060.00514.61
7.3.50.0020.01114.72
7.3.40.0080.00414.60
7.3.30.0060.00714.63
7.3.20.0060.00716.54
7.3.10.0090.00316.42
7.3.00.0080.00316.39
7.2.330.0070.01116.51
7.2.320.0060.01316.57
7.2.310.0130.00616.47
7.2.300.0090.00916.63
7.2.290.0060.00916.53
7.2.250.0100.00714.84
7.2.240.0100.00814.78
7.2.230.0080.00414.91
7.2.220.0080.00715.01
7.2.210.0090.00314.93
7.2.200.0040.01114.81
7.2.190.0060.00914.97
7.2.180.0050.00415.08
7.2.170.0050.00914.96
7.2.60.0030.01016.62
7.2.50.0060.00616.85
7.1.330.0020.01215.61
7.1.320.0060.00415.59
7.1.310.0050.00815.47
7.1.300.0100.00415.58
7.1.290.0060.00415.62
7.1.280.0030.00915.63
7.1.270.0070.00515.60
7.1.260.0060.00915.56
7.1.200.0090.00315.71
7.1.70.0110.00316.88
7.1.60.0100.01619.43
7.1.50.0070.01516.86
7.1.00.0030.07022.44
7.0.200.0030.00316.82
7.0.140.0100.06722.21
7.0.60.0030.09019.98
7.0.50.0130.04017.86
7.0.40.0100.06319.98
7.0.30.0130.04720.20
7.0.20.0270.06320.18
7.0.10.0130.06720.09
7.0.00.0100.07020.16
5.6.280.0070.07021.06
5.6.210.0100.08020.69
5.6.200.0000.04318.22
5.6.190.0000.05320.63
5.6.180.0200.07720.41
5.6.170.0330.04720.48
5.6.160.0100.03720.51
5.6.150.0030.07318.09
5.6.140.0000.05718.22
5.6.130.0100.07718.12
5.6.120.0030.08020.94
5.6.110.0100.06720.86
5.6.100.0230.06721.13
5.6.90.0070.06720.97
5.6.80.0070.05020.36
5.6.70.0130.04320.52
5.5.350.0000.07020.39
5.5.340.0130.07318.02
5.5.330.0100.08320.21
5.5.320.0230.04320.26
5.5.310.0230.07020.30
5.5.300.0030.08017.91
5.5.290.0100.06018.02
5.5.280.0030.04720.76
5.5.270.0030.07720.83
5.5.260.0100.07320.88
5.5.250.0100.08020.70
5.5.240.0070.08320.16
5.4.450.0700.05319.58
5.4.440.0870.07719.13
5.4.430.1170.07719.12
5.4.420.1170.04319.27
5.4.410.0130.05019.00
5.4.400.0400.05718.63
5.4.390.0470.06318.66
5.4.380.0170.06018.76
5.4.370.0230.04318.56
5.4.360.0200.04718.49
5.4.350.0110.04411.98
5.4.340.0070.03811.97
5.4.320.0050.04112.45
5.4.310.0060.04012.45
5.4.300.0070.03812.46
5.4.290.0060.03912.45
5.4.280.0100.04512.35
5.4.270.0040.03812.35
5.4.260.0100.03912.35
5.4.250.0070.05318.87
5.4.240.0070.05318.80
5.4.230.0100.06018.84
5.4.220.0030.08318.89
5.4.210.0170.06019.02
5.4.200.0100.04719.00
5.4.190.0100.05018.77
5.4.180.0000.06018.77
5.4.170.0030.05718.74
5.4.160.0100.07718.83
5.4.150.0270.06018.76
5.4.140.0030.05716.24
5.4.130.0170.04016.26
5.4.120.0100.04716.24
5.4.110.0100.06016.26
5.4.100.0030.05716.55
5.4.90.0100.04716.36
5.4.80.0030.05316.41
5.4.70.0030.05316.22
5.4.60.0170.04316.49
5.4.50.0030.07316.47
5.4.40.0070.04716.45
5.4.30.0070.05016.39
5.4.20.0130.04316.50
5.4.10.0200.03716.50
5.4.00.0070.04715.69
5.3.290.0030.04112.80
5.3.280.0070.05014.61
5.3.270.0100.05014.61
5.3.260.0070.05714.70
5.3.250.0070.05714.65
5.3.240.0200.04314.47
5.3.230.0130.05014.29
5.3.220.0130.06014.42
5.3.210.0200.05014.57
5.3.200.0070.05314.61
5.3.190.0200.04014.45
5.3.180.0200.05314.26
5.3.170.0030.05314.66
5.3.160.0070.06014.44
5.3.150.0070.05014.61
5.3.140.0030.05314.55
5.3.130.0100.05014.42
5.3.120.0070.08014.40
5.3.110.0070.05014.56
5.3.100.0100.04713.91
5.3.90.0100.05013.93
5.3.80.0170.04014.18
5.3.70.0130.04314.06
5.3.60.0030.05313.91
5.3.50.0100.05713.84
5.3.40.0070.04713.64
5.3.30.0100.07013.61
5.3.20.0100.06013.61
5.3.10.0070.06313.64
5.3.00.0030.06713.50
5.2.170.0100.04011.06
5.2.160.0000.04311.06
5.2.150.0030.04310.98
5.2.140.0070.04011.16
5.2.130.0030.04311.11
5.2.120.0030.03711.10
5.2.110.0000.04711.00
5.2.100.0070.04011.09
5.2.90.0000.05011.01
5.2.80.0130.04011.02
5.2.70.0070.04011.11
5.2.60.0070.04011.07
5.2.50.0030.04310.92
5.2.40.0030.04010.99
5.2.30.0030.04010.98
5.2.20.0000.04310.88
5.2.10.0100.04710.96
5.2.00.0070.04710.62
5.1.60.0070.0439.93
5.1.50.0030.0339.91
5.1.40.0070.03010.16
5.1.30.0030.03710.09
5.1.20.0030.04010.43
5.1.10.0030.04010.25
5.1.00.0030.04010.15
5.0.50.0100.0238.63
5.0.40.0000.0308.55
5.0.30.0100.0378.30
5.0.20.0000.0308.38
5.0.10.0000.0308.26
5.0.00.0030.0408.39
4.4.90.0000.0236.87
4.4.80.0030.0206.87
4.4.70.0030.0206.82
4.4.60.0000.0236.81
4.4.50.0030.0206.77
4.4.40.0030.0306.69
4.4.30.0130.0106.64
4.4.20.0000.0236.50
4.4.10.0000.0236.50
4.4.00.0030.0336.50
4.3.110.0000.0236.50
4.3.100.0030.0206.50
4.3.90.0000.0206.50
4.3.80.0000.0336.50
4.3.70.0070.0176.50
4.3.60.0030.0176.50
4.3.50.0100.0206.50
4.3.40.0070.0306.50
4.3.30.0000.0236.50
4.3.20.0030.0206.50
4.3.10.0030.0276.50
4.3.00.0130.0207.62

preferences:
39.79 ms | 400 KiB | 5 Q