3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = 'goofe eas تان ک'.chr( bindec( '11111100' ) ).'ے عسکری ذرائع کے مطابق بدھ' .chr( bindec( '11011111' ) ); mb_internal_encoding( 'utf-8' ); echo mb_substr( $string , 6 )."\n"; echo mb_substr( $string , 6 , 4 )."\n"; echo mb_substr( $string , 6 , -4 )."\n"; echo mb_substr( $string , -4 )."\n"; exit(0);

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.0160.00316.38
8.3.50.0100.00817.55
8.3.40.0150.00318.56
8.3.30.0110.00318.71
8.3.20.0040.00418.64
8.3.10.0030.00620.70
8.3.00.0050.00319.25
8.2.180.0110.01118.15
8.2.170.0120.00322.96
8.2.160.0100.00322.13
8.2.150.0040.00424.18
8.2.140.0070.00324.66
8.2.130.0040.00426.16
8.2.120.0040.00419.89
8.2.110.0070.00321.03
8.2.100.0000.01117.91
8.2.90.0000.00819.05
8.2.80.0030.00518.05
8.2.70.0030.00517.75
8.2.60.0060.00317.93
8.2.50.0050.00318.07
8.2.40.0040.00419.95
8.2.30.0070.00018.14
8.2.20.0040.00417.79
8.2.10.0040.00717.78
8.2.00.0080.00017.61
8.1.270.0040.00423.99
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0060.00320.79
8.1.230.0110.00020.86
8.1.220.0050.00317.76
8.1.210.0040.00419.03
8.1.200.0030.00617.38
8.1.190.0030.00617.66
8.1.180.0080.00018.10
8.1.170.0080.00018.76
8.1.160.0050.00218.80
8.1.150.0000.00718.65
8.1.140.0030.00617.36
8.1.130.0000.00817.70
8.1.120.0080.00017.37
8.1.110.0000.00817.42
8.1.100.0040.00417.49
8.1.90.0040.00417.46
8.1.80.0040.00417.45
8.1.70.0060.00317.41
8.1.60.0040.00417.65
8.1.50.0050.00317.55
8.1.40.0030.00517.47
8.1.30.0030.00517.67
8.1.20.0000.00817.76
8.1.10.0060.00317.50
8.1.00.0040.00417.49
8.0.300.0030.00620.09
8.0.290.0040.00416.75
8.0.280.0000.00718.64
8.0.270.0040.00417.24
8.0.260.0000.00917.02
8.0.250.0040.00417.12
8.0.240.0000.01017.02
8.0.230.0080.00017.09
8.0.220.0070.00017.02
8.0.210.0000.00716.98
8.0.200.0000.00616.97
8.0.190.0050.00217.14
8.0.180.0040.00416.95
8.0.170.0080.00017.04
8.0.160.0040.00417.03
8.0.150.0030.00616.98
8.0.140.0040.00417.02
8.0.130.0050.00313.49
8.0.120.0040.00417.09
8.0.110.0070.00016.89
8.0.100.0000.00816.85
8.0.90.0040.00416.91
8.0.80.0040.01116.98
8.0.70.0030.00516.91
8.0.60.0000.00716.90
8.0.50.0040.00417.08
8.0.30.0130.00917.10
8.0.20.0130.00617.10
8.0.10.0040.00416.82
8.0.00.0100.00816.71
7.4.330.0000.00512.97
7.4.320.0030.00316.61
7.4.300.0060.00016.50
7.4.290.0060.00316.61
7.4.280.0030.00616.50
7.4.270.0030.00316.64
7.4.260.0030.00313.21
7.4.250.0030.00616.57
7.4.240.0040.00416.46
7.4.230.0080.00016.61
7.4.220.0080.00816.43
7.4.210.0060.01116.46
7.4.200.0040.00416.60
7.4.190.0000.00816.49
7.4.160.0090.00616.61
7.4.150.0060.01216.50
7.4.140.0130.00316.47
7.4.130.0090.00916.52
7.4.120.0080.01016.47
7.4.110.0100.00616.64
7.4.100.0070.01116.61
7.4.90.0060.01116.54
7.4.80.0110.00716.44
7.4.70.0180.00516.34
7.4.60.0120.00416.57
7.4.50.0000.00916.34
7.4.40.0120.00016.33
7.4.30.0110.00616.54
7.4.00.0100.00714.91
7.3.330.0000.00513.00
7.3.320.0040.00413.11
7.3.310.0030.00316.12
7.3.300.0070.00016.25
7.3.290.0110.00316.27
7.3.280.0090.01016.23
7.3.270.0040.01316.49
7.3.260.0100.00716.53
7.3.250.0100.00916.46
7.3.240.0030.01516.51
7.3.230.0120.00416.48
7.3.210.0100.00616.43
7.3.200.0130.00719.39
7.3.190.0120.00616.47
7.3.180.0170.00016.38
7.3.170.0060.01116.62
7.3.160.0130.00316.56
7.3.120.0110.00414.65
7.2.330.0070.01016.30
7.2.320.0040.01916.67
7.2.310.0090.01216.74
7.2.300.0060.00916.70
7.2.290.0080.00916.63
7.2.00.0080.00819.34
7.1.100.0030.01018.27
7.1.70.0000.01117.25
7.1.60.0110.01419.40
7.1.50.0030.01916.98
7.1.00.0000.06322.29
7.0.200.0000.00716.84
7.0.140.0030.06722.11
7.0.120.0000.07722.02
7.0.60.0030.08719.88
7.0.50.0030.08717.80
7.0.40.0130.07020.36
7.0.30.0300.05020.13
7.0.20.0300.06320.12
7.0.10.0100.03720.16
7.0.00.0070.09020.03
5.6.280.0030.07321.09
5.6.210.0170.05020.63
5.6.200.0070.04018.09
5.6.190.0100.08720.39
5.6.180.0300.07720.56
5.6.170.0200.07720.38
5.6.160.0030.04320.53
5.6.150.0100.03018.21
5.6.140.0070.03318.16
5.6.130.0070.07018.18
5.6.120.0070.05021.04
5.6.110.0070.03720.88
5.6.100.0170.07720.99
5.6.90.0030.07721.00
5.6.80.0070.07720.35
5.5.350.0300.03720.44
5.5.340.0100.07717.96
5.5.330.0070.03720.40
5.5.320.0230.04320.41
5.5.310.0370.07020.29
5.5.300.0100.05317.92
5.5.290.0030.04017.92
5.5.280.0130.06020.73
5.5.270.0130.04020.86
5.5.260.0000.08720.75
5.5.250.0330.06320.46
5.5.240.0100.06020.14
5.4.450.0170.07019.44
5.4.440.0130.04319.41
5.4.430.0030.08019.40
5.4.420.0030.04719.40
5.4.410.0070.05319.00
5.4.400.0030.06318.79
5.4.390.0130.06718.91
5.4.380.0070.07019.12
5.4.370.0070.04019.13
5.4.360.0130.07019.09
5.4.350.0070.04718.79
5.4.340.0170.07018.79
5.4.320.0030.04718.79
5.4.310.0070.05318.92
5.4.300.0030.08319.15
5.4.290.0170.05719.15
5.4.280.0130.07319.07
5.4.270.0070.04719.20
5.4.260.0030.08319.08
5.4.250.0170.05019.13
5.4.240.0100.06719.00
5.4.230.0070.07019.14
5.4.220.0130.07019.09
5.4.210.0130.07018.78
5.4.200.0030.04319.17
5.4.190.0130.04318.78
5.4.180.0070.04319.07
5.4.170.0130.03718.90
5.4.160.0130.06019.12
5.4.150.0100.04019.15
5.4.140.0000.04316.39
5.4.130.0030.06016.25
5.4.120.0070.06316.37
5.4.110.0130.04316.35
5.4.100.0000.07716.14
5.4.90.0070.04316.24
5.4.80.0070.05316.22
5.4.70.0000.04716.39
5.4.60.0100.05016.19
5.4.50.0230.04016.25
5.4.40.0070.05716.34
5.4.30.0100.04016.24
5.4.20.0170.06016.39
5.4.10.0100.04316.29
5.4.00.0070.04315.66
5.3.290.0130.07014.65
5.3.280.0070.04314.68
5.3.270.0070.07014.53
5.3.260.0000.04014.43
5.3.250.0100.06014.53
5.3.240.0070.04014.54
5.3.230.0130.05314.52
5.3.220.0070.06014.46
5.3.210.0070.07314.52
5.3.200.0070.07714.49
5.3.190.0000.08014.66
5.3.180.0170.07014.48
5.3.170.0000.08714.38
5.3.160.0070.07314.49
5.3.150.0100.06314.49
5.3.140.0000.07314.50
5.3.130.0100.07714.48
5.3.120.0030.08014.37
5.3.110.0100.07014.49
5.3.100.0030.06014.01
5.3.90.0000.07713.91
5.3.80.0100.05713.95
5.3.70.0100.07313.85
5.3.60.0070.05313.93
5.3.50.0170.04714.03
5.3.40.0070.04713.76
5.3.30.0130.07013.84
5.3.20.0070.07013.62
5.3.10.0070.05013.60
5.3.00.0100.04313.61
5.2.170.0100.06011.02
5.2.160.0100.05311.04
5.2.150.0070.06311.23
5.2.140.0070.06011.14
5.2.130.0100.05011.00
5.2.120.0100.03010.92
5.2.110.0100.04011.04
5.2.100.0030.03711.04
5.2.90.0030.05711.11
5.2.80.0070.03011.09
5.2.70.0030.05011.04
5.2.60.0000.03710.98
5.2.50.0100.05710.88
5.2.40.0070.05310.92
5.2.30.0100.03710.87
5.2.20.0030.04010.89
5.2.10.0030.06010.86
5.2.00.0030.06010.71
5.1.60.0070.05010.16
5.1.50.0070.0339.97
5.1.40.0070.0539.97
5.1.30.0030.03010.26
5.1.20.0030.06010.23
5.1.10.0070.04010.08
5.1.00.0100.04310.05
5.0.50.0000.0438.59
5.0.40.0100.0408.48
5.0.30.0070.0578.23
5.0.20.0000.0338.23
5.0.10.0000.0338.22
5.0.00.0030.0608.30
4.4.90.0030.0237.58
4.4.80.0030.0407.58
4.4.70.0100.0137.58
4.4.60.0030.0377.58
4.4.50.0070.0337.58
4.4.40.0030.0277.58
4.4.30.0000.0207.58
4.4.20.0000.0277.58
4.4.10.0030.0377.58
4.4.00.0000.0507.58
4.3.110.0030.0307.58
4.3.100.0000.0377.58
4.3.90.0000.0307.58
4.3.80.0000.0537.58
4.3.70.0030.0307.58
4.3.60.0000.0337.58
4.3.50.0070.0337.58
4.3.40.0030.0437.58
4.3.30.0000.0377.58
4.3.20.0000.0377.58
4.3.10.0000.0307.58
4.3.00.0070.0277.58

preferences:
42.65 ms | 400 KiB | 5 Q