3v4l.org

run code in 300+ PHP versions simultaneously
<?php $utf8string = 'ASCIIユーティーエッフ8hello123等々'; $var = 'ティーエ'; $pos = strpos($utf8string, $var); if ($pos!==false) { echo substr($utf8string, 0, $pos); }

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.28
8.3.50.0110.01021.14
8.3.40.0070.00718.75
8.3.30.0140.00018.70
8.3.20.0040.00420.29
8.3.10.0080.00021.97
8.3.00.0040.00422.50
8.2.180.0080.00816.38
8.2.170.0030.01022.96
8.2.160.0070.00719.27
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0050.00319.23
8.2.110.0080.00022.21
8.2.100.0110.00017.68
8.2.90.0000.00819.21
8.2.80.0050.00317.97
8.2.70.0030.00617.25
8.2.60.0000.00817.80
8.2.50.0060.00318.07
8.2.40.0050.00320.01
8.2.30.0000.00717.98
8.2.20.0070.00017.75
8.2.10.0040.00417.78
8.2.00.0040.00417.54
8.1.280.0070.01025.92
8.1.270.0000.00822.14
8.1.260.0060.00326.35
8.1.250.0050.00228.09
8.1.240.0060.00323.75
8.1.230.0070.00319.01
8.1.220.0050.00317.74
8.1.210.0050.00318.77
8.1.200.0030.00617.35
8.1.190.0030.00617.18
8.1.180.0040.00418.66
8.1.170.0030.00618.31
8.1.160.0070.00022.12
8.1.150.0060.00318.57
8.1.140.0040.00417.38
8.1.130.0070.00017.82
8.1.120.0030.00317.29
8.1.110.0000.00717.27
8.1.100.0040.00417.42
8.1.90.0000.00717.38
8.1.80.0030.00317.28
8.1.70.0030.00617.42
8.1.60.0110.00017.41
8.1.50.0040.00417.37
8.1.40.0030.00617.34
8.1.30.0040.00417.49
8.1.20.0070.00017.58
8.1.10.0040.00417.54
8.1.00.0040.00417.46
8.0.300.0020.00518.77
8.0.290.0000.00717.15
8.0.280.0040.00418.34
8.0.270.0000.00717.15
8.0.260.0040.00416.75
8.0.250.0040.00416.85
8.0.240.0030.00316.83
8.0.230.0070.00016.85
8.0.220.0030.00316.71
8.0.210.0070.00016.84
8.0.200.0040.00416.88
8.0.190.0000.00816.89
8.0.180.0040.00416.85
8.0.170.0060.00316.84
8.0.160.0000.00716.87
8.0.150.0070.00016.78
8.0.140.0030.00316.67
8.0.130.0030.00313.21
8.0.120.0050.00316.79
8.0.110.0020.00516.74
8.0.100.0070.00016.88
8.0.90.0040.00416.81
8.0.80.0030.01216.77
8.0.70.0050.00216.81
8.0.60.0040.00416.71
8.0.50.0040.00416.80
8.0.30.0150.00617.03
8.0.20.0130.00917.40
8.0.10.0040.00416.82
8.0.00.0160.00316.78
7.4.330.0060.00015.00
7.4.320.0060.00016.51
7.4.300.0070.00016.50
7.4.290.0030.00316.59
7.4.280.0000.00716.42
7.4.270.0030.00316.52
7.4.260.0070.00016.64
7.4.250.0000.00716.50
7.4.240.0050.00216.48
7.4.230.0040.00416.63
7.4.220.0100.00716.70
7.4.210.0100.00616.59
7.4.200.0060.00016.62
7.4.190.0040.00416.59
7.4.160.0040.01216.41
7.4.150.0130.00317.40
7.4.140.0140.00717.86
7.4.130.0110.00916.51
7.4.120.0100.00916.57
7.4.110.0170.00316.57
7.4.100.0110.00616.43
7.4.90.0070.01016.28
7.4.80.0100.01019.39
7.4.70.0120.01216.53
7.4.60.0080.00816.62
7.4.50.0040.00416.15
7.4.40.0100.00322.77
7.4.30.0070.01316.57
7.4.00.0090.00814.96
7.3.330.0030.00313.09
7.3.320.0000.00513.00
7.3.310.0040.00416.25
7.3.300.0030.00316.23
7.3.290.0070.00716.25
7.3.280.0070.01016.20
7.3.270.0070.01017.40
7.3.260.0180.00016.47
7.3.250.0080.01516.43
7.3.240.0110.01116.30
7.3.230.0180.00316.39
7.3.210.0060.01016.23
7.3.200.0060.01019.39
7.3.190.0120.00616.23
7.3.180.0120.00916.38
7.3.170.0110.00616.50
7.3.160.0060.01016.24
7.3.120.0060.00914.64
7.3.110.0070.01115.05
7.3.100.0070.01014.56
7.3.90.0080.01214.79
7.3.80.0070.01014.94
7.3.70.0090.00614.84
7.3.60.0090.00614.57
7.3.50.0060.00914.60
7.3.40.0030.01314.69
7.3.30.0000.01414.69
7.3.20.0060.00916.66
7.3.10.0050.00916.64
7.3.00.0080.00316.36
7.2.330.0030.01416.50
7.2.320.0090.01316.59
7.2.310.0110.00516.50
7.2.300.0080.00816.69
7.2.290.0030.01416.44
7.2.250.0030.01714.62
7.2.240.0030.01615.13
7.2.230.0030.01314.94
7.2.220.0110.00415.09
7.2.210.0120.00315.04
7.2.200.0110.00414.97
7.2.190.0050.00514.88
7.2.180.0130.00014.78
7.2.170.0030.01014.80
7.2.130.0000.01116.71
7.2.120.0000.01116.83
7.2.110.0040.01116.79
7.2.100.0030.00616.69
7.2.90.0070.00716.85
7.2.80.0060.00616.79
7.2.70.0040.00716.98
7.2.60.0080.00516.83
7.2.50.0040.00716.89
7.2.40.0080.00016.67
7.2.30.0060.01016.73
7.2.20.0000.01116.65
7.2.10.0110.00016.88
7.2.00.0100.00218.14
7.1.330.0070.00715.43
7.1.320.0060.01115.94
7.1.310.0060.00915.86
7.1.300.0120.00415.59
7.1.290.0070.00715.81
7.1.280.0000.01715.58
7.1.270.0080.00415.76
7.1.260.0120.00615.88
7.1.250.0090.00615.83
7.1.200.0000.01115.76
7.1.100.0070.00718.09
7.1.70.0030.00617.00
7.1.60.0030.02019.82
7.1.50.0140.01116.63
7.1.00.0000.05322.36
7.0.200.0070.00416.55
7.0.140.0070.07022.21
7.0.60.0030.05019.85
7.0.50.0100.05317.86
7.0.40.0030.05720.23
7.0.30.0270.08720.04
7.0.20.0200.04720.19
7.0.10.0200.04720.35
7.0.00.0030.04020.17
5.6.280.0130.06321.07
5.6.210.0170.07320.67
5.6.200.0000.04318.12
5.6.190.0000.04720.63
5.6.180.3930.04020.39
5.6.170.0200.05020.40
5.6.160.0030.04320.51
5.6.150.0130.08018.21
5.6.140.0030.07018.21
5.6.130.0030.04018.11
5.6.120.0070.09020.98
5.6.110.0100.06321.09
5.6.100.0100.08021.04
5.6.90.0200.07021.12
5.6.80.0100.03020.36
5.6.70.0370.06720.36
5.5.350.0300.03320.40
5.5.340.0070.08317.92
5.5.330.0100.05020.57
5.5.320.0200.05320.14
5.5.310.0130.04720.17
5.5.300.0130.07717.96
5.5.290.0130.05717.95
5.5.280.0000.08320.76
5.5.270.0130.05720.76
5.5.260.0030.04320.87
5.5.250.0070.04720.68
5.5.240.0100.07320.14
5.4.450.0170.05319.63
5.4.440.1000.07719.11
5.4.430.0100.05719.13
5.4.420.0830.05019.54
5.4.410.0800.05319.50
5.4.400.0430.06718.50
5.4.390.0370.06018.54
5.4.380.0270.08018.67
5.4.370.0230.04318.65
5.4.360.0200.04318.50
5.4.350.0100.05718.73
5.4.340.0030.06318.45
5.4.320.0050.03812.46
5.4.310.0070.05212.45
5.4.300.0070.03812.46
5.4.290.0050.03812.46
5.4.280.0070.03912.35
5.4.270.0080.04612.35
5.4.260.0070.05318.89
5.4.250.0130.06018.89
5.4.240.0130.04718.99
5.4.230.0070.05319.02
5.4.220.0170.05718.80
5.4.210.0030.05718.92
5.4.200.0130.04718.70
5.4.190.0130.04718.90
5.4.180.0130.04718.93
5.4.170.0100.05318.92
5.4.160.0100.05318.92
5.4.150.0100.05318.63
5.4.140.0100.07016.23
5.4.130.0030.06016.20
5.4.120.0130.05716.23
5.4.110.0070.05016.27
5.4.100.0130.06016.53
5.4.90.0030.05016.43
5.4.80.0070.05016.21
5.4.70.0100.04716.43
5.4.60.0130.04316.50
5.4.50.0030.05016.25
5.4.40.0100.04716.55
5.4.30.0070.04716.28
5.4.20.0070.07316.32
5.4.10.0030.06016.17
5.4.00.0130.04315.68
5.3.290.0080.05212.80
5.3.280.0130.04714.29
5.3.270.0170.04714.49
5.3.260.0170.05714.63
5.3.250.0100.05314.61
5.3.240.0030.06014.61
5.3.230.0100.05014.43
5.3.220.0070.05014.56
5.3.210.0070.05314.65
5.3.200.0030.05314.56
5.3.190.0100.04714.56
5.3.180.0170.04314.57
5.3.170.0030.05314.57
5.3.160.0170.04014.61
5.3.150.0100.04714.44
5.3.140.0130.04314.56
5.3.130.0170.04314.54
5.3.120.0070.05314.69
5.3.110.0030.05714.24
5.3.100.0030.05314.05
5.3.90.0030.05014.01
5.3.80.0130.04713.93
5.3.70.0070.05014.03
5.3.60.0100.05013.87
5.3.50.0100.06713.78
5.3.40.0170.04013.99
5.3.30.0030.05313.82
5.3.20.0070.04713.70
5.3.10.0070.04713.75
5.3.00.0100.04713.41
5.2.170.0030.06011.06
5.2.160.0130.04311.13
5.2.150.0100.04011.15
5.2.140.0130.03311.22
5.2.130.0030.04311.13
5.2.120.0070.05011.11
5.2.110.0030.04010.98
5.2.100.0070.03711.03
5.2.90.0070.03710.93
5.2.80.0100.03710.98
5.2.70.0100.03711.01
5.2.60.0000.06311.04
5.2.50.0000.04310.86
5.2.40.0170.03311.00
5.2.30.0070.04011.09
5.2.20.0070.04010.97
5.2.10.0100.03311.01
5.2.00.0100.03710.87
5.1.60.0100.03010.04
5.1.50.0030.05010.14
5.1.40.0030.0379.75
5.1.30.0070.03710.39
5.1.20.0200.03710.52
5.1.10.0030.03710.29
5.1.00.0030.03710.21
5.0.50.0030.0278.56
5.0.40.0000.0308.31
5.0.30.0030.0408.25
5.0.20.0070.0238.23
5.0.10.0130.0178.40
5.0.00.0030.0438.15
4.4.90.0030.0207.30
4.4.80.0000.0237.30
4.4.70.0030.0207.30
4.4.60.0070.0277.30
4.4.50.0000.0237.30
4.4.40.0030.0437.30
4.4.30.0030.0307.30
4.4.20.0030.0207.30
4.4.10.0000.0237.30
4.4.00.0000.0337.30
4.3.110.0030.0207.30
4.3.100.0070.0177.30
4.3.90.0000.0237.30
4.3.80.0000.0377.30
4.3.70.0100.0137.30
4.3.60.0100.0237.30
4.3.50.0030.0207.30
4.3.40.0030.0307.30
4.3.30.0030.0207.30
4.3.20.0000.0237.30
4.3.10.0000.0237.30
4.3.00.0130.0237.94

preferences:
45.98 ms | 401 KiB | 5 Q