3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = 'tehdgsd f fs fsddf sdf http://mail.ru?dsdfll fdsfsd'; if( $pos = (stripos($text, 'http://') OR stripos($text, 'https://')) ) { echo $pos; echo substr($text, $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.0030.01016.88
8.3.50.0040.01122.91
8.3.40.0090.00618.58
8.3.30.0080.00819.11
8.3.20.0070.00020.34
8.3.10.0060.00321.73
8.3.00.0080.00017.38
8.2.180.0070.01116.38
8.2.170.0110.00722.96
8.2.160.0030.01020.23
8.2.150.0000.00824.18
8.2.140.0070.00024.66
8.2.130.0040.01126.16
8.2.120.0070.00020.98
8.2.110.0060.00322.11
8.2.100.0060.00617.72
8.2.90.0090.00019.05
8.2.80.0000.00817.97
8.2.70.0030.00617.49
8.2.60.0040.00417.93
8.2.50.0050.00318.07
8.2.40.0070.00018.22
8.2.30.0050.00218.05
8.2.20.0030.00517.54
8.2.10.0040.00418.23
8.2.00.0070.00017.81
8.1.280.0070.00725.92
8.1.270.0080.00023.96
8.1.260.0000.00726.35
8.1.250.0070.00028.09
8.1.240.0130.01022.47
8.1.230.0000.01119.07
8.1.220.0030.00517.74
8.1.210.0040.00418.77
8.1.200.0110.00017.09
8.1.190.0040.00417.10
8.1.180.0080.00018.10
8.1.170.0040.00418.27
8.1.160.0000.00722.02
8.1.150.0040.00418.92
8.1.140.0000.00717.40
8.1.130.0030.00317.88
8.1.120.0000.00717.53
8.1.110.0040.00417.36
8.1.100.0080.00017.46
8.1.90.0000.00717.46
8.1.80.0000.00717.48
8.1.70.0000.00717.41
8.1.60.0000.00817.56
8.1.50.0040.00417.44
8.1.40.0000.00717.52
8.1.30.0040.00417.56
8.1.20.0000.00917.55
8.1.10.0040.00417.47
8.1.00.0040.00717.36
8.0.300.0070.00018.77
8.0.290.0040.00416.63
8.0.280.0000.00718.45
8.0.270.0040.00416.83
8.0.260.0030.00317.27
8.0.250.0000.00716.91
8.0.240.0080.00016.82
8.0.230.0040.00416.77
8.0.220.0000.00716.89
8.0.210.0030.00316.90
8.0.200.0040.00416.84
8.0.190.0070.00016.94
8.0.180.0030.00316.81
8.0.170.0050.00316.80
8.0.160.0000.00716.84
8.0.150.0030.00316.80
8.0.140.0060.00316.89
8.0.130.0000.00613.32
8.0.120.0040.00416.86
8.0.110.0050.00216.87
8.0.100.0080.00016.70
8.0.90.0000.00716.87
8.0.80.0080.00816.85
8.0.70.0000.00716.79
8.0.60.0070.00016.96
8.0.50.0040.00416.88
8.0.30.0140.00716.91
8.0.20.0090.01317.40
8.0.10.0020.00516.89
8.0.00.0070.01116.81
7.4.330.0050.00015.06
7.4.320.0000.00616.50
7.4.300.0030.00316.61
7.4.290.0090.00016.41
7.4.280.0040.00416.49
7.4.270.0000.00716.61
7.4.260.0080.00016.46
7.4.250.0040.00416.46
7.4.240.0020.00616.49
7.4.230.0030.00316.41
7.4.220.0100.00916.63
7.4.210.0090.00516.63
7.4.200.0070.00016.37
7.4.160.0090.00616.28
7.4.150.0110.00817.40
7.4.140.0100.00817.86
7.4.130.0110.00616.37
7.4.120.0080.01116.45
7.4.110.0090.00916.46
7.4.100.0140.00316.34
7.4.90.0130.00316.29
7.4.80.0070.01019.39
7.4.70.0060.01016.49
7.4.60.0100.00616.46
7.4.50.0050.00316.46
7.4.40.0100.01016.38
7.4.30.0100.00516.26
7.4.00.0060.01014.99
7.3.330.0030.00313.11
7.3.320.0060.00013.08
7.3.310.0050.00216.14
7.3.300.0030.00316.16
7.3.290.0140.00016.16
7.3.280.0130.00616.19
7.3.270.0100.00717.40
7.3.260.0150.00316.29
7.3.240.0080.00816.20
7.3.230.0110.00616.39
7.3.210.0140.00216.14
7.3.200.0080.00819.39
7.3.190.0060.01116.59
7.3.180.0100.00716.38
7.3.170.0090.01316.61
7.3.160.0110.01116.32
7.3.10.0050.00516.65
7.3.00.0060.00616.70
7.2.330.0130.00616.56
7.2.320.0160.00616.50
7.2.310.0150.00616.46
7.2.300.0070.01016.16
7.2.290.0070.01316.36
7.2.130.0030.00616.70
7.2.120.0030.01016.88
7.2.110.0060.00616.84
7.2.100.0100.00616.82
7.2.90.0050.00516.61
7.2.80.0060.00316.76
7.2.70.0060.00616.89
7.2.60.0090.00716.84
7.2.50.0030.00916.68
7.2.40.0100.00316.92
7.2.30.0040.01116.82
7.2.20.0030.00616.66
7.2.10.0060.00616.79
7.2.00.0060.01016.93
7.1.250.0040.00715.84
7.1.200.0070.00715.88
7.1.100.0250.00518.15
7.1.70.0000.01017.30
7.1.60.0130.01319.40
7.1.50.0040.01516.98
7.1.00.0030.07722.44
7.0.200.0000.00716.79
7.0.140.0100.06722.08
7.0.60.0170.07719.92
7.0.50.0070.08317.91
7.0.40.0070.08720.12
7.0.30.0330.07720.21
7.0.20.0270.06020.13
7.0.10.0070.06020.21
7.0.00.0070.06720.03
5.6.280.0070.07021.09
5.6.210.0070.04320.69
5.6.200.0100.06318.23
5.6.190.0130.05020.77
5.6.180.0230.07020.44
5.6.170.0270.07720.52
5.6.160.0030.04320.40
5.6.150.0030.06318.13
5.6.140.0030.08018.07
5.6.130.0070.08018.10
5.6.120.0070.05320.89
5.6.110.0130.07720.97
5.6.100.0000.04320.98
5.6.90.0200.07021.13
5.6.80.0000.04020.38
5.5.350.0100.08020.52
5.5.340.0100.04718.01
5.5.330.0100.08020.20
5.5.320.0470.06320.51
5.5.310.0370.06720.29
5.5.300.0030.03717.95
5.5.290.0000.04717.95
5.5.280.0100.08020.87
5.5.270.0200.06020.72
5.5.260.0000.04320.67
5.5.250.0030.08320.68
5.5.240.3770.03320.18
5.4.450.0600.04319.41
5.4.440.0370.05019.57
5.4.430.0370.04319.57
5.4.420.0430.04319.41
5.4.410.0270.04319.00
5.4.400.0600.04319.16
5.4.390.0200.04019.10
5.4.380.0400.05318.52
5.4.370.0370.04318.59
5.4.360.0200.04718.68
5.4.350.0330.06018.58
5.4.340.0270.05718.61
5.4.320.0070.03512.45
5.4.310.0060.03612.45
5.4.300.0090.03412.45
5.4.290.0060.03712.45
5.4.280.0040.04812.35
5.4.270.0080.03312.34
5.4.260.0080.04512.34
5.4.250.0050.03812.35
5.4.240.0080.03312.35
5.4.230.0050.03912.34
5.4.220.0060.03512.34
5.4.210.0040.03712.34
5.4.200.0030.04112.34
5.4.190.0070.03412.34
5.4.180.0070.03412.33
5.4.170.0060.03512.35
5.4.160.0040.03812.34
5.4.150.0050.03612.34
5.4.140.0060.03812.02
5.4.130.0060.03512.01
5.4.120.0060.03511.96
5.4.110.0050.04511.96
5.4.100.0060.03411.96
5.4.90.0080.03611.96
5.4.80.0070.04011.96
5.4.70.0050.04311.96
5.4.60.0060.05211.96
5.4.50.0050.04611.96
5.4.40.0050.03411.95
5.4.30.0050.03511.95
5.4.20.0080.04611.94
5.4.10.0100.03611.95
5.4.00.0030.04011.43
5.3.290.0040.04012.80
5.3.280.0050.04312.71
5.3.270.0070.03912.73
5.3.260.0070.03812.72
5.3.250.0070.03612.72
5.3.240.0070.04812.72
5.3.230.0070.04212.71
5.3.220.0030.04012.68
5.3.210.0090.04612.68
5.3.200.0060.04012.68
5.3.190.0080.03612.68
5.3.180.0060.03712.67
5.3.170.0040.03812.67
5.3.160.0040.03712.67
5.3.150.0060.03612.67
5.3.140.0070.03512.66
5.3.130.0050.04712.66
5.3.120.0090.04512.66
5.3.110.0110.03812.66
5.3.100.0110.04312.12
5.3.90.0080.04012.09
5.3.80.0060.03612.07
5.3.70.0060.04412.08
5.3.60.0060.03512.06
5.3.50.0050.03912.00
5.3.40.0080.03412.00
5.3.30.0100.03011.94
5.3.20.0070.03311.72
5.3.10.0070.03411.69
5.3.00.0070.03411.68
5.2.170.0030.0349.18
5.2.160.0050.0299.18
5.2.150.0050.0309.17
5.2.140.0020.0399.17
5.2.130.0070.0339.13
5.2.120.0050.0289.13
5.2.110.0040.0299.14
5.2.100.0060.0429.14
5.2.90.0060.0289.14
5.2.80.0040.0309.14
5.2.70.0100.0309.14
5.2.60.0080.0349.09
5.2.50.0080.0359.06
5.2.40.0070.0499.03
5.2.30.0050.0339.01
5.2.20.0060.0308.99
5.2.10.0050.0278.92
5.2.00.0040.0298.77
5.1.60.0030.0258.06
5.1.50.0040.0248.06
5.1.40.0030.0258.04
5.1.30.0040.0268.39
5.1.20.0020.0288.41
5.1.10.0060.0258.13
5.1.00.0050.0258.14
5.0.50.0050.0196.61
5.0.40.0040.0186.47
5.0.30.0040.0406.29
5.0.20.0040.0186.25
5.0.10.0040.0186.23
5.0.00.0040.0396.23
4.4.90.0010.0164.78
4.4.80.0030.0214.75
4.4.70.0050.0144.75
4.4.60.0030.0154.75
4.4.50.0020.0164.77
4.4.40.0060.0234.71
4.4.30.0040.0194.76
4.4.20.0050.0234.85
4.4.10.0040.0204.85
4.4.00.0070.0274.76
4.3.110.0030.0194.67
4.3.100.0020.0154.67
4.3.90.0010.0164.63
4.3.80.0020.0254.58
4.3.70.0010.0164.63
4.3.60.0010.0164.63
4.3.50.0020.0164.63
4.3.40.0020.0254.54
4.3.30.0010.0173.28
4.3.20.0020.0203.26
4.3.10.0030.0203.22
4.3.00.0030.02015.92

preferences:
38.39 ms | 401 KiB | 5 Q