3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = 'goofe eas تان ک'.chr( bindec( '11111100' ) ).'ے عسکری ذرائع کے مطابق بدھ' .chr( bindec( '11011111' ) ); echo mb_substr( $string , 6 , null , 'utf-8' )."\n"; echo mb_substr( $string , 6 , 4 , 'utf-8' )."\n"; echo mb_substr( $string , 6 , -4 )."\n"; echo mb_substr( $string , -4 , null , 'utf-8' )."\n"; 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.00018.31
8.3.50.0120.00817.39
8.3.40.0150.00018.71
8.3.30.0140.00718.73
8.3.20.0040.00418.73
8.3.10.0000.00918.90
8.3.00.0030.00619.38
8.2.180.0070.01016.50
8.2.170.0090.00622.96
8.2.160.0080.00818.96
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0040.00420.86
8.2.110.0040.00822.27
8.2.100.0030.01019.64
8.2.90.0040.00417.88
8.2.80.0040.00418.82
8.2.70.0030.00617.63
8.2.60.0000.00817.93
8.2.50.0030.00618.07
8.2.40.0020.00518.21
8.2.30.0030.00617.75
8.2.20.0030.00617.67
8.2.10.0000.00717.80
8.2.00.0050.00217.64
8.1.280.0100.00725.92
8.1.270.0060.00323.99
8.1.260.0040.00426.35
8.1.250.0050.00328.09
8.1.240.0030.00620.04
8.1.230.0100.00017.83
8.1.220.0000.00717.78
8.1.210.0000.00918.77
8.1.200.0060.00317.23
8.1.190.0040.00417.25
8.1.180.0000.00818.10
8.1.170.0030.00518.59
8.1.160.0000.00718.90
8.1.150.0000.00818.70
8.1.140.0040.00417.54
8.1.130.0000.00819.17
8.1.120.0000.00717.43
8.1.110.0040.00417.47
8.1.100.0000.00717.47
8.1.90.0040.00417.44
8.1.80.0000.00717.36
8.1.70.0040.00417.36
8.1.60.0000.00917.71
8.1.50.0020.00517.50
8.1.40.0050.00317.46
8.1.30.0030.00517.71
8.1.20.0040.00417.75
8.1.10.0070.00017.58
8.1.00.0030.00617.45
8.0.300.0040.00418.77
8.0.290.0050.00316.88
8.0.280.0030.00318.39
8.0.270.0040.00317.36
8.0.260.0030.00316.96
8.0.250.0000.00717.03
8.0.240.0000.00717.09
8.0.230.0000.00716.96
8.0.220.0030.00316.94
8.0.210.0030.00317.02
8.0.200.0050.00316.95
8.0.190.0000.00817.05
8.0.180.0070.00416.93
8.0.170.0030.00616.86
8.0.160.0070.00016.98
8.0.150.0060.00316.93
8.0.140.0040.00416.85
8.0.130.0030.00313.46
8.0.120.0030.00617.00
8.0.110.0040.00417.01
8.0.100.0060.00316.96
8.0.90.0070.00017.00
8.0.80.0130.00517.00
8.0.70.0000.00716.90
8.0.60.0070.00317.08
8.0.50.0030.00616.93
8.0.30.0000.01716.98
8.0.20.0090.00917.26
8.0.10.0040.00416.99
8.0.00.0140.00616.75
7.4.330.0000.00513.00
7.4.320.0030.00316.50
7.4.300.0030.00316.48
7.4.290.0030.00316.61
7.4.280.0080.00016.56
7.4.270.0040.00416.60
7.4.260.0000.00513.26
7.4.250.0000.00716.50
7.4.240.0030.00316.51
7.4.230.0030.00616.54
7.4.220.0130.01316.50
7.4.210.0000.02016.63
7.4.200.0040.00416.44
7.4.190.0030.00516.69
7.4.160.0060.00916.38
7.4.150.0060.01216.57
7.4.140.0090.01216.39
7.4.130.0130.01016.52
7.4.120.0100.00716.47
7.4.110.0090.00916.66
7.4.100.0140.00316.49
7.4.90.0110.00816.49
7.4.80.0040.02019.39
7.4.70.0080.01316.39
7.4.60.0110.00616.64
7.4.50.0000.00616.55
7.4.40.0080.00816.37
7.4.30.0060.01216.68
7.4.00.0080.00414.82
7.3.330.0080.00013.16
7.3.320.0050.00013.23
7.3.310.0070.00016.24
7.3.300.0080.00016.28
7.3.290.0040.01116.31
7.3.280.0120.00916.28
7.3.270.0150.00316.34
7.3.260.0070.01016.43
7.3.250.0090.01116.38
7.3.240.0100.00616.23
7.3.230.0170.00016.27
7.3.210.0060.01116.12
7.3.200.0120.00416.30
7.3.190.0040.01816.50
7.3.180.0170.00016.55
7.3.170.0180.00416.42
7.3.160.0090.01316.36
7.3.120.0160.00014.98
7.3.10.0120.00516.33
7.3.00.0130.00716.43
7.2.330.0120.00616.42
7.2.320.0130.00316.34
7.2.310.0120.00616.39
7.2.300.0040.01316.79
7.2.290.0140.00916.67
7.2.130.0070.00916.43
7.2.120.0090.00716.63
7.2.110.0090.00816.77
7.2.100.0120.00616.66
7.2.90.0100.00816.96
7.2.80.0070.00616.83
7.2.70.0080.00616.65
7.2.60.0020.01316.85
7.2.50.0090.00716.72
7.2.40.0110.00816.55
7.2.30.0090.01216.81
7.2.20.0100.00716.68
7.2.10.0070.01016.75
7.2.00.0090.00616.92
7.1.250.0160.00315.46
7.1.100.0190.00517.50
7.1.70.0080.00017.22
7.1.60.0070.01719.30
7.1.50.0070.00717.00
7.1.00.0030.07322.44
7.0.200.0000.00716.71
7.0.140.0030.07722.08
7.0.120.0030.07322.05
7.0.60.0070.06020.02
7.0.50.0030.04317.67
7.0.40.0170.04720.12
7.0.30.0200.03720.09
7.0.20.0200.08020.04
7.0.10.0170.08020.20
7.0.00.0070.08020.30
5.6.280.0070.07021.13
5.6.210.0070.07720.73
5.6.200.0130.07718.21
5.6.190.0070.06020.41
5.6.180.0370.07020.27
5.6.170.0270.07320.62
5.6.160.0130.07720.47
5.6.150.0070.06318.12
5.6.140.0100.07718.21
5.6.130.0100.07718.14
5.6.120.0070.08721.00
5.6.110.0170.07320.99
5.6.100.0170.07721.11
5.6.90.0130.08020.98
5.6.80.0030.07320.38
5.5.350.0200.08720.44
5.5.340.0030.08017.92
5.5.330.0070.04720.40
5.5.320.0230.08020.32
5.5.310.0270.07720.29
5.5.300.0130.06018.02
5.5.290.0030.06317.98
5.5.280.0030.05020.85
5.5.270.0100.05320.79
5.5.260.0170.05320.82
5.5.250.0130.04720.79
5.5.240.0070.06020.23
5.4.450.0270.06019.45
5.4.440.0270.06019.46
5.4.430.0170.04019.40
5.4.420.0270.02719.21
5.4.410.0230.04319.10
5.4.400.0270.05019.06
5.4.390.0430.07018.93
5.4.380.0300.06318.89
5.4.370.0200.05318.93
5.4.360.0100.06019.13
5.4.350.0200.06019.13
5.4.340.0230.06719.24
5.4.320.0300.04719.16
5.4.310.0170.03718.78
5.4.300.0330.06319.07
5.4.290.0130.04018.80
5.4.280.0170.07719.16
5.4.270.0270.07018.88
5.4.260.0200.04319.12
5.4.250.0200.07319.09
5.4.240.0170.04019.15
5.4.230.0200.04018.93
5.4.220.0370.07018.80
5.4.210.0200.05719.07
5.4.200.0170.04318.88
5.4.190.0200.07319.12
5.4.180.0100.04719.09
5.4.170.0130.04018.87
5.4.160.0200.05319.11
5.4.150.0270.03319.19
5.4.140.0130.05316.32
5.4.130.0230.07016.22
5.4.120.0170.05016.35
5.4.110.0270.07316.47
5.4.100.0130.07016.35
5.4.90.0200.04016.46
5.4.80.0200.03316.42
5.4.70.0200.05316.29
5.4.60.0170.04716.04
5.4.50.0200.03016.19
5.4.40.0100.04716.31
5.4.30.0130.03716.04
5.4.20.0170.03316.40
5.4.10.0130.03716.20
5.4.00.0270.03015.71
5.3.290.0200.07014.53
5.3.280.0200.07714.55
5.3.270.0170.07714.56
5.3.260.0170.04314.63
5.3.250.0230.07714.56
5.3.240.0330.06014.52
5.3.230.0200.07014.54
5.3.220.0130.05314.43
5.3.210.0170.07014.62
5.3.200.0300.03314.51
5.3.190.0170.06014.59
5.3.180.0070.05014.55
5.3.170.0230.06714.52
5.3.160.0200.07314.42
5.3.150.0270.06014.51
5.3.140.0170.05314.41
5.3.130.0200.04314.47
5.3.120.0230.03014.50
5.3.110.0170.03714.65
5.3.100.0170.07713.88
5.3.90.0270.06714.08
5.3.80.0300.06013.84
5.3.70.0200.07313.90
5.3.60.0130.04313.86
5.3.50.0200.04313.79
5.3.40.0170.06013.90
5.3.30.0200.04014.01
5.3.20.0130.04013.75
5.3.10.0000.08013.52
5.3.00.0070.06713.59
5.2.170.0030.04010.99
5.2.160.0070.03711.01
5.2.150.0970.03711.01
5.2.140.1630.03311.22
5.2.130.1500.03710.96
5.2.120.1530.03710.95
5.2.110.1530.03711.12
5.2.100.1670.03011.27
5.2.90.1630.02010.96
5.2.80.1630.03010.95
5.2.70.1370.02711.28
5.2.60.1330.02310.90
5.2.50.1570.03711.04
5.2.40.1300.03011.08
5.2.30.1070.03310.84
5.2.20.1300.03011.06
5.2.10.1000.03010.84
5.2.00.1130.02710.63
5.1.60.1300.02710.09
5.1.50.1130.0209.87
5.1.40.1070.0279.91
5.1.30.1130.02310.45
5.1.20.1230.03310.22
5.1.10.1130.03010.05
5.1.00.1200.02310.16
5.0.50.0530.0209.34
5.0.40.0600.0239.34
5.0.30.0570.0279.34
5.0.20.0600.0239.34
5.0.10.0530.0209.34
5.0.00.0600.0309.34
4.4.90.0530.0139.34
4.4.80.0600.0209.34
4.4.70.0500.0179.34
4.4.60.0700.0279.34
4.4.50.0570.0209.34
4.4.40.0630.0309.34
4.4.30.0600.0139.34
4.4.20.0500.0179.34
4.4.10.0730.0209.34
4.4.00.0630.0239.34
4.3.110.0700.0239.34
4.3.100.0570.0139.34
4.3.90.0570.0109.34
4.3.80.0770.0379.34
4.3.70.0500.0209.34
4.3.60.0600.0139.34
4.3.50.0530.0179.34
4.3.40.0500.0279.34
4.3.30.0330.0179.34
4.3.20.0300.0239.34
4.3.10.0300.0209.34
4.3.00.0270.0179.34

preferences:
45.89 ms | 401 KiB | 5 Q