3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = 'небезнадёжен 😂🤓:https://vk.c'; $string = str_replace( "?", "{%}", $string ); $string = mb_convert_encoding( $string, "ISO-8859-1", "UTF-8" ); $string = mb_convert_encoding( $string, "UTF-8", "ISO-8859-1" ); $string = str_replace( array( "?", "? ", " ?" ), array(""), $string ); $string = str_replace( "{%}", "?", $string ); return trim( $string ); var_dump($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.3.60.0120.00616.38
8.3.50.0150.00621.09
8.3.40.0140.00018.33
8.3.30.0060.00918.54
8.3.20.0030.00518.51
8.3.10.0060.00321.57
8.3.00.0040.00419.02
8.2.180.0040.01518.76
8.2.170.0070.00722.96
8.2.160.0070.00718.95
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0050.00321.17
8.2.120.0080.00026.35
8.2.110.0000.01021.25
8.2.100.0070.00418.18
8.2.90.0000.00819.35
8.2.80.0040.00417.97
8.2.70.0030.00517.38
8.2.60.0080.00418.05
8.2.50.0000.00818.10
8.2.40.0000.00920.67
8.2.30.0000.00720.76
8.2.20.0070.00017.77
8.2.10.0070.00018.20
8.2.00.0100.00018.30
8.1.280.0070.01425.92
8.1.270.0040.00424.04
8.1.260.0050.00328.09
8.1.250.0000.00728.09
8.1.240.0090.00023.96
8.1.230.0080.00417.46
8.1.220.0050.00217.78
8.1.210.0030.00618.77
8.1.200.0000.00817.48
8.1.190.0050.00317.60
8.1.180.0030.00518.10
8.1.170.0030.00518.79
8.1.160.0000.00719.16
8.1.150.0000.00819.08
8.1.140.0000.01019.67
8.1.130.0000.00717.89
8.1.120.0070.00017.61
8.1.110.0040.00417.58
8.1.100.0070.00017.56
8.1.90.0050.00317.64
8.1.80.0070.00017.46
8.1.70.0000.00717.45
8.1.60.0020.00517.78
8.1.50.0030.00517.70
8.1.40.0080.00017.59
8.1.30.0040.00417.79
8.1.20.0040.00417.77
8.1.10.0050.00217.45
8.1.00.0070.00017.52
8.0.300.0000.00718.77
8.0.290.0030.00516.63
8.0.280.0000.00718.53
8.0.270.0030.00317.32
8.0.260.0030.00317.45
8.0.250.0040.00417.03
8.0.240.0040.00417.04
8.0.230.0050.00217.04
8.0.220.0030.00516.89
8.0.210.0070.00016.93
8.0.200.0050.00317.05
8.0.190.0050.00217.06
8.0.180.0000.00817.04
8.0.170.0070.00017.03
8.0.160.0070.00017.04
8.0.150.0040.00416.92
8.0.140.0060.00316.84
8.0.130.0030.00313.40
8.0.120.0000.00816.93
8.0.110.0080.00017.05
8.0.100.0030.00617.01
8.0.90.0000.00716.77
8.0.80.0140.00316.90
8.0.70.0000.00716.86
8.0.60.0000.00716.81
8.0.50.0050.00217.02
8.0.30.0120.00617.31
8.0.20.0090.01017.40
8.0.10.0000.00717.08
8.0.00.0100.00916.86
7.4.330.0060.00015.08
7.4.320.0000.00616.45
7.4.300.0030.00316.56
7.4.290.0000.00716.60
7.4.280.0000.00716.48
7.4.270.0000.00716.60
7.4.260.0070.00016.60
7.4.250.0040.00416.54
7.4.240.0000.00716.66
7.4.230.0070.00016.66
7.4.220.0140.00416.59
7.4.210.0060.00916.52
7.4.200.0040.00416.71
7.4.160.0100.00716.34
7.4.150.0160.00617.40
7.4.140.0060.01217.86
7.4.130.0090.00816.54
7.4.120.0100.00916.63
7.4.110.0090.00916.60
7.4.100.0070.01116.48
7.4.90.0040.01416.56
7.4.80.0080.00819.39
7.4.70.0040.01716.68
7.4.60.0110.00616.55
7.4.50.0110.00316.41
7.4.40.0070.01016.73
7.4.30.0140.00316.52
7.4.10.0090.01015.23
7.4.00.0080.00914.97
7.3.330.0060.00013.18
7.3.320.0000.00613.17
7.3.310.0000.00716.12
7.3.300.0000.00716.22
7.3.290.0070.01016.33
7.3.280.0060.01216.26
7.3.270.0030.01317.40
7.3.260.0060.01216.37
7.3.250.0040.01516.47
7.3.240.0090.00916.53
7.3.230.0070.01016.39
7.3.210.0130.00316.25
7.3.200.0070.01416.62
7.3.190.0100.00716.34
7.3.180.0040.01116.35
7.3.170.0100.00716.38
7.3.160.0000.01516.31
7.3.130.0110.00814.94
7.3.120.0110.00814.98
7.3.110.0080.01014.93
7.3.100.0040.00914.90
7.3.90.0100.00514.83
7.3.80.0040.00614.90
7.3.70.0040.01014.79
7.3.60.0040.01014.88
7.3.50.0050.00614.94
7.3.40.0040.00914.91
7.3.30.0070.00614.96
7.3.20.0070.00816.57
7.3.10.0070.00816.46
7.3.00.0060.00716.62
7.2.330.0050.01316.72
7.2.320.0150.00616.50
7.2.310.0140.00716.46
7.2.300.0100.00616.58
7.2.290.0130.01016.45
7.2.260.0050.01415.12
7.2.250.0080.01015.04
7.2.240.0080.00714.98
7.2.230.0070.00815.06
7.2.220.0060.00915.09
7.2.210.0070.00515.00
7.2.200.0040.01014.94
7.2.190.0080.00214.94
7.2.180.0050.00715.04
7.2.170.0060.01015.06
7.2.160.0090.00315.18
7.2.150.0070.00817.02
7.2.140.0030.00816.86
7.2.130.0060.00616.69
7.2.120.0060.01016.75
7.2.110.0060.00716.87
7.2.100.0020.01417.00
7.2.90.0050.00916.66
7.2.80.0050.01016.78
7.2.70.0070.00716.81
7.2.60.0080.00916.97
7.2.50.0010.01216.93
7.2.40.0070.01016.95
7.2.30.0060.01016.85
7.2.20.0070.00616.90
7.2.10.0080.00616.88
7.2.00.0120.00717.60
7.1.330.0070.00715.75
7.1.320.0090.00415.69
7.1.310.0050.00915.83
7.1.300.0050.00915.68
7.1.290.0050.00615.71
7.1.280.0070.00815.71
7.1.270.0020.01115.72
7.1.260.0080.00515.64
7.1.250.0030.00815.67
7.1.240.0050.00715.82
7.1.230.0040.01015.87
7.1.220.0050.00715.87
7.1.210.0060.00915.92
7.1.200.0050.00715.98
7.1.190.0030.01115.84
7.1.180.0030.01015.60
7.1.170.0070.00915.81
7.1.160.0020.01015.76
7.1.150.0010.00815.84
7.1.140.0040.01115.75
7.1.130.0030.01415.70
7.1.120.0110.00415.86
7.1.110.0110.00015.89
7.1.100.0050.00716.54
7.1.90.0030.01015.85
7.1.80.0090.00515.77
7.1.70.0060.00816.30
7.1.60.0080.00917.28
7.1.50.0050.00415.93
7.1.40.0050.00915.77
7.1.30.0090.00315.65
7.1.20.0100.00315.81
7.1.10.0080.00515.77
7.1.00.0080.02818.12
7.0.330.0070.00915.38
7.0.320.0080.00615.25
7.0.310.0080.00715.34
7.0.300.0050.01015.48
7.0.290.0020.00915.59
7.0.280.0050.00915.40
7.0.270.0050.00715.40
7.0.260.0060.00915.22
7.0.250.0030.01115.61
7.0.240.0070.00715.49
7.0.230.0020.00815.51
7.0.220.0070.00415.56
7.0.210.0040.00915.49
7.0.200.0040.00915.79
7.0.190.0060.00515.48
7.0.180.0050.00615.46
7.0.170.0080.00615.48
7.0.160.0040.00715.46
7.0.150.0020.01115.55
7.0.140.0030.00715.41
7.0.130.0050.00615.33
7.0.120.0050.00915.59
7.0.110.0040.00715.58
7.0.100.0000.01015.51
7.0.90.0050.01015.38
7.0.80.0030.01015.43
7.0.70.0030.00815.55
7.0.60.0080.01517.57
7.0.50.0110.02317.21
7.0.40.0060.02516.37
7.0.30.0150.01816.43
7.0.20.0140.02116.25
7.0.10.0090.02516.34
7.0.00.0090.02616.37
5.6.400.0090.00614.85
5.6.390.0030.01014.87
5.6.380.0080.00314.74
5.6.370.0040.01114.65
5.6.360.0070.00514.76
5.6.350.0030.00914.71
5.6.340.0090.00514.86
5.6.330.0040.00414.85
5.6.320.0070.00514.91
5.6.310.0080.00514.70
5.6.300.0040.00614.71
5.6.290.0050.00714.75
5.6.280.0100.02516.99
5.6.270.0020.00914.69
5.6.260.0030.00914.75
5.6.250.0060.00514.91
5.6.240.0070.00614.73
5.6.230.0050.00514.85
5.6.220.0070.00714.79
5.6.210.0020.02216.65
5.6.200.0070.02515.88
5.6.190.0090.02616.90
5.6.180.0100.02616.86
5.6.170.0090.02416.97
5.6.160.0080.02316.78
5.6.150.0090.02216.77
5.6.140.0100.02316.99
5.6.130.0110.02416.92
5.6.120.0100.02216.89
5.6.110.0100.02716.90
5.6.100.0140.02316.95
5.6.90.0100.02416.96
5.6.80.0150.02116.67
5.6.70.0110.02616.65
5.6.60.0080.02816.64
5.6.50.0070.02716.70
5.6.40.0130.02116.59
5.6.30.0130.01916.63
5.6.20.0060.02816.63
5.6.10.0110.02116.60
5.6.00.0070.02416.60
5.5.380.0020.00814.61
5.5.370.0040.00714.75
5.5.360.0070.00414.57
5.5.350.1440.01816.59
5.5.340.0040.02015.81
5.5.330.0090.02316.90
5.5.320.0090.02216.81
5.5.310.0130.02316.88
5.5.300.0120.02116.68
5.5.290.0110.02516.96
5.5.280.0050.03016.96
5.5.270.0040.02916.85
5.5.260.0120.02316.85
5.5.250.0130.02216.68
5.5.240.0100.02216.47
5.5.230.0150.02116.52
5.5.220.0110.02416.65
5.5.210.0100.02416.55
5.5.200.0160.02016.54
5.5.190.0110.02416.57
5.5.180.0060.02516.60
5.5.170.0000.01314.67
5.5.160.0100.02016.42
5.5.150.0100.01816.59
5.5.140.0090.02116.51
5.5.130.0080.02216.48
5.5.120.0080.02416.44
5.5.110.0090.02416.50
5.5.100.0150.02216.54
5.5.90.0140.02016.46
5.5.80.0150.02216.56
5.5.70.0160.02116.59
5.5.60.0170.02116.53
5.5.50.0120.02416.39
5.5.40.0130.02216.46
5.5.30.0100.02516.55
5.5.20.0100.02716.46
5.5.10.0110.02616.47
5.5.00.0060.03016.41

preferences:
34.01 ms | 401 KiB | 5 Q