3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = "Hello this is dummy.test. in this string any character, any special character can appear. it is not a fixed type text and predefined. this string will not read manually check by the Programmer.Sorry for the bad English."; $test = strrpos($str, 'test'); $dummy = strrpos($str, 'dummy', $test); echo $dummy;

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.0090.00618.18
8.3.50.0090.01121.92
8.3.40.0110.00418.70
8.3.30.0110.00418.58
8.3.20.0040.00418.48
8.3.10.0060.00320.96
8.3.00.0040.00421.90
8.2.180.0190.00316.63
8.2.170.0090.00922.96
8.2.160.0030.01720.52
8.2.150.0040.00424.18
8.2.140.0140.00024.66
8.2.130.0070.00026.16
8.2.120.0040.00417.63
8.2.110.0060.00320.35
8.2.100.0040.00817.72
8.2.90.0030.00619.22
8.2.80.0000.00718.04
8.2.70.0000.00817.63
8.2.60.0000.00917.80
8.2.50.0040.00418.07
8.2.40.0000.00718.16
8.2.30.0040.00421.25
8.2.20.0040.00417.47
8.2.10.0040.00417.74
8.2.00.0000.00817.63
8.1.280.0110.00425.92
8.1.270.0030.00723.75
8.1.260.0060.00326.35
8.1.250.0040.00428.09
8.1.240.0000.00922.52
8.1.230.0090.00320.88
8.1.220.0000.00918.77
8.1.210.0030.00619.10
8.1.200.0000.01017.35
8.1.190.0030.00617.38
8.1.180.0110.00018.10
8.1.170.0000.00818.49
8.1.160.0000.00718.75
8.1.150.0040.00418.48
8.1.140.0040.00417.41
8.1.130.0000.00717.86
8.1.120.0040.00417.30
8.1.110.0080.00017.38
8.1.100.0000.00717.42
8.1.90.0000.00817.40
8.1.80.0000.00817.42
8.1.70.0000.00717.30
8.1.60.0060.00317.48
8.1.50.0030.00517.30
8.1.40.0000.00717.49
8.1.30.0040.00417.45
8.1.20.0030.00617.63
8.1.10.0000.00817.53
8.1.00.0000.00717.33
8.0.300.0030.00619.88
8.0.290.0000.00817.18
8.0.280.0070.00018.35
8.0.270.0000.00718.00
8.0.260.0060.00016.78
8.0.250.0000.00816.98
8.0.240.0080.00016.92
8.0.230.0040.00416.79
8.0.220.0000.00716.79
8.0.210.0000.00616.75
8.0.200.0060.00316.77
8.0.190.0000.00716.78
8.0.180.0040.00416.82
8.0.170.0000.00716.89
8.0.160.0040.00316.72
8.0.150.0070.00016.82
8.0.140.0000.00816.77
8.0.130.0030.00313.21
8.0.120.0040.00416.72
8.0.110.0040.00416.69
8.0.100.0040.00416.72
8.0.90.0040.00416.71
8.0.80.0100.00716.84
8.0.70.0000.00716.61
8.0.60.0000.00716.84
8.0.50.0040.00416.82
8.0.30.0160.00317.13
8.0.20.0090.01017.40
8.0.10.0040.00416.91
8.0.00.0050.01216.76
7.4.330.0030.00316.79
7.4.320.0000.00616.48
7.4.300.0030.00316.53
7.4.290.0030.00316.29
7.4.280.0070.00316.32
7.4.270.0000.00616.42
7.4.260.0060.00013.27
7.4.250.0040.00416.39
7.4.240.0000.00716.37
7.4.230.0030.00316.29
7.4.220.0120.01216.47
7.4.210.0050.01116.52
7.4.200.0030.00316.48
7.4.190.0070.00016.54
7.4.160.0110.00516.38
7.4.150.0070.01117.40
7.4.140.0120.00817.86
7.4.130.0070.01116.52
7.4.120.0100.00716.42
7.4.110.0130.00316.33
7.4.100.0070.01416.46
7.4.90.0060.01716.28
7.4.80.0090.00619.39
7.4.70.0090.00916.54
7.4.60.0090.00616.29
7.4.50.0050.00316.15
7.4.40.0030.01222.77
7.4.30.0080.00816.52
7.4.00.0070.01014.87
7.3.330.0050.00013.04
7.3.320.0050.00012.93
7.3.310.0070.00016.14
7.3.300.0050.00216.22
7.3.290.0110.00916.16
7.3.280.0100.00716.20
7.3.270.0100.00717.40
7.3.260.0110.00818.24
7.3.250.0070.01016.21
7.3.240.0090.00916.54
7.3.230.0060.01116.39
7.3.210.0060.01016.55
7.3.200.0080.00819.39
7.3.190.0060.01316.47
7.3.180.0060.01016.21
7.3.170.0110.00316.27
7.3.160.0130.00316.18
7.3.120.0120.00314.57
7.2.330.0110.00616.64
7.2.320.0140.00416.31
7.2.310.0140.00316.47
7.2.300.0140.00316.27
7.2.290.0040.01616.44
7.2.00.0040.01119.44
7.1.100.0070.00417.74
7.1.70.0040.00416.89
7.1.60.0030.02019.40
7.1.50.0240.01434.82
7.1.00.0100.06022.57
7.0.200.0090.00914.95
7.0.140.0030.07321.91
7.0.60.0130.07721.77
7.0.50.0130.07022.04
7.0.40.0170.06020.08
7.0.30.0170.07019.96
7.0.20.0200.07720.14
7.0.10.0170.06720.09
7.0.00.0070.09019.99
5.6.280.0070.06720.75
5.6.210.0070.08720.68
5.6.200.0100.06021.12
5.6.190.0100.07021.03
5.6.180.0030.08721.00
5.6.170.0170.07721.00
5.6.160.0100.07021.13
5.6.150.0100.07321.13
5.6.140.0200.05721.13
5.6.130.0130.08321.19
5.6.120.0130.07021.11
5.6.110.0100.07020.98
5.6.100.0070.08321.00
5.6.90.0130.03720.97
5.6.80.0170.06020.44
5.6.70.0130.07720.49
5.6.60.0100.05020.35
5.6.50.0130.07320.43
5.6.40.0130.07720.49
5.6.30.0130.07720.48
5.6.20.0070.05320.47
5.6.10.0100.04020.39
5.6.00.0270.05020.30
5.5.350.0100.07020.39
5.5.340.0130.08020.87
5.5.330.0130.06720.88
5.5.320.0170.08020.95
5.5.310.0130.07020.79
5.5.300.0170.06720.87
5.5.290.0070.04720.95
5.5.280.0070.04020.65
5.5.270.0130.08320.86
5.5.260.0070.06320.75
5.5.250.0130.04720.65
5.5.240.0170.06720.26
5.5.230.0100.08020.15
5.5.220.0170.05720.17
5.5.210.0100.06320.27
5.5.200.0170.07320.20
5.5.190.0130.07720.30
5.5.180.0130.06720.30
5.5.160.0030.05020.08
5.5.150.0100.07020.15
5.5.140.0100.08020.14
5.5.130.0170.06720.32
5.5.120.0100.07320.14
5.5.110.0100.07320.13
5.5.100.0100.06319.98
5.5.90.0100.07320.04
5.5.80.0000.05720.00
5.5.70.0070.06020.09
5.5.60.0170.05020.09
5.5.50.0170.07720.05
5.5.40.0100.07719.96
5.5.30.0170.07020.10
5.5.20.0200.07320.19
5.5.10.0070.04720.17
5.5.00.0130.07320.16
5.4.450.0130.05719.34
5.4.440.0170.07719.28
5.4.430.0170.07019.14
5.4.420.0100.07719.30
5.4.410.0030.05019.36
5.4.400.0130.07318.98
5.4.390.0100.06318.99
5.4.380.0030.05018.86
5.4.370.0230.07718.99
5.4.360.0130.06719.16
5.4.350.0070.07719.01
5.4.340.0100.08319.01
5.4.320.0100.07319.10
5.4.310.0170.06019.09
5.4.300.0100.07318.96
5.4.290.0070.06018.84
5.4.280.0100.07719.16
5.4.270.0070.06719.00
5.4.260.0070.08018.98
5.4.250.0130.06719.09
5.4.240.0100.05018.84
5.4.230.0130.07018.96
5.4.220.0070.08019.19
5.4.210.0170.06018.91
5.4.200.0070.08319.00
5.4.190.0170.05318.94
5.4.180.0100.07719.02
5.4.170.0070.06018.89
5.4.160.0100.05718.96
5.4.150.0030.08319.05
5.4.140.0100.05716.33
5.4.130.0100.05316.21
5.4.120.0170.06316.40
5.4.110.0070.07316.25
5.4.100.0070.06316.25
5.4.90.0130.06716.30
5.4.80.0070.05716.38
5.4.70.0070.07016.29
5.4.60.0100.06316.28
5.4.50.0070.07016.28
5.4.40.0270.05016.26
5.4.30.0070.07316.27
5.4.20.0070.06316.26
5.4.10.0130.07016.45
5.4.00.0130.06015.73
5.3.290.0070.07714.59
5.3.280.0130.07014.54
5.3.270.0030.08014.57
5.3.260.0130.07014.59
5.3.250.0070.06714.54
5.3.240.0030.08014.55
5.3.230.0170.07014.51
5.3.220.0100.07714.50
5.3.210.0100.07714.50
5.3.200.0100.07314.54
5.3.190.0030.07014.39
5.3.180.0030.07014.38
5.3.170.0100.07314.54
5.3.160.0130.07314.48
5.3.150.0100.06314.35
5.3.140.0130.07014.46
5.3.130.0130.08014.44
5.3.120.0130.07314.37
5.3.110.0100.05014.49
5.3.100.0100.07313.95
5.3.90.0200.04013.86
5.3.80.0030.07713.86
5.3.70.0070.07013.96
5.3.60.0100.07313.77
5.3.50.0100.06013.73
5.3.40.0070.07713.80
5.3.30.0070.05313.88
5.3.20.0170.05713.61
5.3.10.0030.06713.50
5.3.00.0030.05313.58
5.2.170.0100.05011.18
5.2.160.0100.06011.07
5.2.150.0070.06311.12
5.2.140.0030.04710.92
5.2.130.0100.05310.93
5.2.120.0070.06010.88
5.2.110.0000.04711.09
5.2.100.0130.05011.00
5.2.90.0030.06011.02
5.2.80.0070.06011.07
5.2.70.0130.05010.87
5.2.60.0030.04011.02
5.2.50.0030.06011.02
5.2.40.0100.05310.92
5.2.30.0030.06011.01
5.2.20.0000.06310.70
5.2.10.0100.05710.84
5.2.00.0030.03710.75
5.1.60.0030.0409.83
5.1.50.0070.04710.04
5.1.40.0000.05310.00
5.1.30.0030.05310.23
5.1.20.0030.05710.33
5.1.10.0030.05310.10
5.1.00.0070.04710.11
5.0.50.0030.0438.54
5.0.40.0000.0438.53
5.0.30.0070.0578.53
5.0.20.0070.0438.53
5.0.10.0030.0438.53
5.0.00.0030.0508.53
4.4.90.0030.0338.53
4.4.80.0030.0308.53
4.4.70.0000.0238.53
4.4.60.0030.0208.53
4.4.50.0000.0378.53
4.4.40.0000.0508.53
4.4.30.0030.0308.53
4.4.20.0000.0308.53
4.4.10.0030.0378.53
4.4.00.0000.0538.53
4.3.110.0100.0238.53
4.3.100.0000.0338.53
4.3.90.0030.0308.53
4.3.80.0000.0378.53
4.3.70.0000.0278.53
4.3.60.0070.0238.53
4.3.50.0070.0278.53
4.3.40.0000.0508.53
4.3.30.0030.0338.53
4.3.20.0030.0338.53
4.3.10.0000.0338.53
4.3.00.0000.0308.53

preferences:
63.84 ms | 401 KiB | 5 Q