3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = mb_convert_encoding( "test ääöö", "ISO-8859-15", "UTF-8" ); $b = mb_substr( $a, 0, null, "UTF-8" ); $c = mb_convert_encoding( $b, "UTF-8", "ISO-8859-15" ); var_dump($a, $b, $c);

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.5.00.0120.00819.79
8.4.150.0020.00014.05
8.4.140.0140.00717.20
8.4.130.0090.00817.77
8.4.120.0110.00820.29
8.4.110.0080.00922.16
8.4.100.0140.00617.77
8.4.90.0030.00620.41
8.4.80.0040.00417.38
8.4.70.0100.00617.59
8.4.60.0130.00818.43
8.4.50.0050.01020.17
8.4.40.0160.00317.48
8.4.30.0030.00520.20
8.4.20.0040.00719.52
8.4.10.0080.00019.42
8.3.280.0110.00818.51
8.3.270.0160.00416.67
8.3.260.0110.00816.66
8.3.250.0130.00618.57
8.3.240.0090.01016.44
8.3.230.0110.00816.59
8.3.220.0130.00617.02
8.3.210.0130.00716.37
8.3.200.0060.01316.82
8.3.190.0070.00817.03
8.3.180.0120.01018.29
8.3.170.0090.00918.76
8.3.160.0040.00416.62
8.3.150.0070.01117.11
8.3.140.0140.00416.68
8.3.130.0040.00418.38
8.3.120.0040.00420.78
8.3.110.0040.00420.94
8.3.100.0090.00624.06
8.3.90.0080.00026.77
8.3.80.0160.00630.84
8.3.70.0360.01130.84
8.3.60.0340.01030.84
8.3.50.0080.00830.84
8.3.40.0310.00330.84
8.3.30.0260.01130.84
8.3.20.0300.00830.84
8.3.10.0280.01130.84
8.3.00.0220.01630.84
8.2.290.0120.00720.40
8.2.280.0050.00518.21
8.2.270.0110.00617.34
8.2.260.0130.00618.44
8.2.250.0150.00316.82
8.2.240.0030.00617.23
8.2.230.0030.00622.58
8.2.220.0060.00637.54
8.2.210.0000.00726.77
8.2.200.0330.00730.84
8.2.190.0290.01130.84
8.2.180.0280.00730.84
8.2.170.0450.00830.84
8.2.160.0330.00930.84
8.2.150.0350.01030.84
8.2.140.0360.00330.84
8.2.130.0180.01230.84
8.2.120.0190.00030.84
8.2.110.0180.00630.84
8.2.100.0240.00330.84
8.2.90.0110.00730.84
8.2.80.0120.01230.84
8.2.70.0400.00330.84
8.2.60.0190.01130.84
8.2.50.0210.00730.84
8.2.40.0100.00730.84
8.2.30.0180.00030.84
8.2.20.0130.00330.84
8.2.10.0170.00030.84
8.2.00.0150.00430.84
8.1.330.0090.00916.67
8.1.320.0110.00216.46
8.1.310.0040.00416.91
8.1.300.0120.00616.31
8.1.290.0140.00530.84
8.1.280.0150.00330.84
8.1.270.0150.00430.84
8.1.260.0190.00030.84
8.1.250.0120.00630.84
8.1.240.0130.00430.84
8.1.230.0140.00330.84
8.1.220.0140.00330.84
8.1.210.0170.00030.84
8.1.200.0150.00330.84
8.1.190.0120.00430.84
8.1.180.0170.00030.84
8.1.170.0150.00430.84
8.1.160.0180.00030.84
8.1.150.0170.00030.84
8.1.140.0080.00830.84
8.1.130.0180.00030.84
8.1.120.0160.00030.84
8.1.110.0120.00330.84
8.1.100.0130.00230.84
8.1.90.0120.00430.84
8.1.80.0110.00230.84
8.1.70.0080.00830.84
8.1.60.0130.00330.84
8.1.50.0130.00430.84
8.1.40.0120.00530.84
8.1.30.0130.00330.84
8.1.20.0110.00730.84
8.1.10.0080.00830.84
8.1.00.0070.00730.84

preferences:
40.3 ms | 403 KiB | 5 Q