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', -strlen($str) - $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.40.0000.01418.75
8.3.30.0150.00318.80
8.3.20.0040.00418.90
8.3.10.0080.00020.40
8.3.00.0100.00023.66
8.2.170.0110.00322.96
8.2.160.0100.00322.13
8.2.150.0050.00324.18
8.2.140.0030.00624.66
8.2.130.0030.00626.16
8.2.120.0030.00619.45
8.2.110.0000.01122.29
8.2.100.0080.00517.73
8.2.90.0000.00819.09
8.2.80.0000.00818.16
8.2.70.0060.00317.50
8.2.60.0040.00418.03
8.2.50.0040.00418.07
8.2.40.0000.00818.22
8.2.30.0030.00519.75
8.2.20.0000.00717.80
8.2.10.0040.00417.79
8.2.00.0040.00417.89
8.1.270.0080.00023.99
8.1.260.0080.00026.35
8.1.250.0000.00728.09
8.1.240.0100.00020.68
8.1.230.0080.00420.88
8.1.220.0050.00318.77
8.1.210.0090.00018.96
8.1.200.0060.00317.35
8.1.190.0000.00717.40
8.1.180.0000.00918.10
8.1.170.0080.00018.71
8.1.160.0000.00718.74
8.1.150.0040.00418.63
8.1.140.0000.00817.38
8.1.130.0000.00717.84
8.1.120.0070.00017.39
8.1.110.0000.00717.44
8.1.100.0030.00317.30
8.1.90.0040.00417.43
8.1.80.0000.00717.31
8.1.70.0030.00317.29
8.1.60.0000.00717.43
8.1.50.0030.00617.48
8.1.40.0040.00417.55
8.1.30.0000.00817.69
8.1.20.0000.00817.54
8.1.10.0040.00417.61
8.1.00.0000.00917.48
8.0.300.0040.00419.98
8.0.290.0040.00416.75
8.0.280.0000.00818.36
8.0.270.0000.00717.19
8.0.260.0060.00016.80
8.0.250.0040.00416.97
8.0.240.0080.00317.04
8.0.230.0000.00716.96
8.0.220.0040.00416.94
8.0.210.0030.00316.80
8.0.200.0040.00416.93
8.0.190.0070.00016.91
8.0.180.0040.00416.96
8.0.170.0030.00616.86
8.0.160.0030.00716.97
8.0.150.0000.00816.88
8.0.140.0070.00016.89
8.0.130.0050.00313.37
8.0.120.0000.00716.83
8.0.110.0030.00716.87
8.0.100.0070.00016.84
8.0.90.0040.00416.92
8.0.80.0090.00616.82
8.0.70.0000.00716.71
8.0.60.0000.00716.86
8.0.50.0040.00416.71
8.0.30.0070.01316.96
8.0.20.0110.01217.40
8.0.10.0070.00016.96
8.0.00.0110.00716.65
7.4.330.0030.00314.82
7.4.320.0030.00316.37
7.4.300.0030.00316.50
7.4.290.0040.00416.45
7.4.280.0040.00416.35
7.4.270.0030.00316.49
7.4.260.0050.00013.20
7.4.250.0030.00616.57
7.4.240.0080.00016.54
7.4.230.0030.00316.54
7.4.220.0130.00916.50
7.4.210.0060.00916.58
7.4.200.0030.00316.53
7.4.190.0030.00316.63
7.4.160.0100.00616.49
7.4.150.0060.01617.40
7.4.140.0110.00717.86
7.4.130.0110.00616.57
7.4.120.0090.00916.61
7.4.110.0100.01316.46
7.4.100.0030.01416.36
7.4.90.0030.01316.42
7.4.80.0040.00319.04
7.4.70.0090.00916.57
7.4.60.0030.01416.42
7.4.50.0000.00816.41
7.4.40.0100.00322.27
7.4.30.0120.00316.43
7.4.00.0100.00315.16
7.3.330.0020.00213.23
7.3.320.0030.00313.28
7.3.310.0040.00416.45
7.3.300.0000.00716.36
7.3.290.0060.00616.36
7.3.280.0090.00916.40
7.3.270.0120.00617.40
7.3.260.0130.00818.24
7.3.250.0080.01316.48
7.3.240.0100.00916.59
7.3.230.0160.00616.55
7.3.210.0060.01616.29
7.3.200.0060.01419.39
7.3.190.0060.01316.32
7.3.180.0040.01216.48
7.3.170.0100.00716.44
7.3.160.0060.01616.30
7.3.120.0080.00414.58
7.2.330.0140.00316.62
7.2.320.0100.01316.57
7.2.310.0080.01116.52
7.2.300.0030.01316.55
7.2.290.0040.01216.52
7.1.70.0000.00916.84
7.1.60.0030.02019.40
7.1.50.0070.01516.73
7.1.00.0070.06022.33
7.0.200.0100.00216.48
7.0.140.0070.07022.00
7.0.60.0000.10019.93
7.0.50.0100.04717.80
7.0.40.0070.05717.79
7.0.30.0030.08717.73
7.0.20.0100.04317.79
7.0.10.0030.06717.78
7.0.00.0130.08017.79
5.6.280.0030.07321.03
5.6.210.0000.05020.54
5.6.200.0070.08018.16
5.6.190.0030.04718.13
5.6.180.0100.07318.17
5.6.170.0170.05018.21
5.6.160.0030.07718.22
5.6.150.0030.08318.16
5.6.140.0100.05718.14
5.6.130.0070.05318.18
5.6.120.0030.05018.20
5.6.110.0070.05718.10
5.6.100.0030.05018.16
5.6.90.0100.04018.20
5.6.80.0100.07717.61
5.6.70.0070.05017.45
5.6.60.0070.05017.52
5.6.50.0070.04717.58
5.6.40.0170.06717.51
5.6.30.0100.08017.44
5.6.20.0030.05717.56
5.6.10.0100.03317.53
5.6.00.0100.04717.49
5.5.350.3830.03320.46
5.5.340.0030.07317.94
5.5.330.0030.07317.98
5.5.320.0070.07317.91
5.5.310.0170.03317.89
5.5.300.0000.05017.96
5.5.290.0070.08317.92
5.5.280.0130.06018.00
5.5.270.0030.05317.97
5.5.260.0030.08017.97
5.5.250.0070.06717.83
5.5.240.0030.08017.33
5.5.230.0070.05317.38
5.5.220.0030.05017.33
5.5.210.0030.04017.30
5.5.200.0000.04317.36
5.5.190.0030.08017.33
5.5.180.0070.06017.26
5.5.160.0030.07317.32
5.5.150.0170.07017.37
5.5.140.0070.07317.31
5.5.130.0000.05717.22
5.5.120.0000.05317.26
5.5.110.0070.08017.25
5.5.100.0070.08317.16
5.5.90.0070.07717.26
5.5.80.0070.07317.23
5.5.70.0070.07717.20
5.5.60.0070.07317.16
5.5.50.0100.05717.16
5.5.40.0030.04017.22
5.5.30.0070.07317.19
5.5.20.0070.03717.22
5.5.10.0100.05317.11
5.5.00.0100.07717.22
5.4.450.0100.03319.22
5.4.440.0130.07319.32
5.4.430.0030.05719.21
5.4.420.0070.05019.33
5.4.410.0100.03319.19
5.4.400.0130.07018.97
5.4.390.0070.06718.82
5.4.380.0070.03319.07
5.4.370.0130.04719.12
5.4.360.0070.06319.12
5.4.350.0100.03318.98
5.4.340.0030.04319.09
5.4.320.0000.04318.98
5.4.310.0130.04018.98
5.4.300.0100.06018.98
5.4.290.0100.07018.95
5.4.280.0030.04319.20
5.4.270.0000.05019.20
5.4.260.0070.07319.01
5.4.250.0030.06319.11
5.4.240.0000.04319.20
5.4.230.0030.08019.06
5.4.220.0270.06019.07
5.4.210.0070.08319.02
5.4.200.0070.07319.20
5.4.190.0070.07718.98
5.4.180.0100.05318.94
5.4.170.0100.07319.11
5.4.160.0030.05019.01
5.4.150.0070.07318.96
5.4.140.0130.04016.39
5.4.130.0000.07016.16
5.4.120.0000.04716.25
5.4.110.0070.07016.28
5.4.100.0070.06316.17
5.4.90.0100.04016.27
5.4.80.0070.06716.26
5.4.70.0130.07016.21
5.4.60.0100.05716.31
5.4.50.0070.03716.20
5.4.40.0100.05016.41
5.4.30.0070.06016.26
5.4.20.0000.04716.25
5.4.10.0130.06716.30
5.4.00.0100.07315.75
5.3.290.0130.07014.75
5.3.280.0000.08014.54
5.3.270.0000.06314.57
5.3.260.0100.06714.38
5.3.250.0000.04714.59
5.3.240.0170.06314.56
5.3.230.0030.08314.56
5.3.220.0070.06714.54
5.3.210.0030.05014.38
5.3.200.0070.04014.53
5.3.190.0070.05714.55
5.3.180.0100.04014.51
5.3.170.0000.08014.34
5.3.160.0130.05314.51
5.3.150.0030.07714.49
5.3.140.0000.06314.49
5.3.130.0130.06314.32
5.3.120.0100.07314.52
5.3.110.0100.04714.52
5.3.100.0030.06714.11
5.3.90.0030.08013.98
5.3.80.0000.06313.97
5.3.70.0000.04713.77
5.3.60.0100.07014.07
5.3.50.0100.07313.90
5.3.40.0100.07013.80
5.3.30.0030.06013.86
5.3.20.0130.07013.66
5.3.10.0130.03713.41
5.3.00.0070.07713.59
5.2.170.0000.06011.12
5.2.160.0070.05011.17
5.2.150.0070.06011.09
5.2.140.0030.06711.13
5.2.130.0030.06310.92
5.2.120.0000.04710.92
5.2.110.0000.05711.09
5.2.100.0030.04010.88
5.2.90.0000.04311.07
5.2.80.0070.03010.98
5.2.70.0030.06010.98
5.2.60.0100.05710.88
5.2.50.0070.06010.80
5.2.40.0100.05311.13
5.2.30.0000.04310.93
5.2.20.0030.05010.95
5.2.10.0030.03010.83
5.2.00.0030.06010.86
5.1.60.0030.0539.82
5.1.50.0070.03010.02
5.1.40.0000.04010.11
5.1.30.0000.06310.30
5.1.20.0100.02710.38
5.1.10.0070.05710.11
5.1.00.0130.04710.11
5.0.50.0000.0408.57
5.0.40.0100.0378.45
5.0.30.0030.0638.36
5.0.20.0000.0438.16
5.0.10.0070.0308.14
5.0.00.0070.0408.22
4.4.90.0000.0377.82
4.4.80.0030.0337.82
4.4.70.0030.0207.82
4.4.60.0000.0207.82
4.4.50.0030.0137.82
4.4.40.0070.0407.82
4.4.30.0000.0207.82
4.4.20.0000.0377.82
4.4.10.0000.0377.82
4.4.00.0030.0337.82
4.3.110.0070.0237.82
4.3.100.0000.0237.82
4.3.90.0000.0277.82
4.3.80.0000.0577.82
4.3.70.0030.0337.82
4.3.60.0030.0277.82
4.3.50.0000.0407.82
4.3.40.0000.0507.82
4.3.30.0030.0207.82
4.3.20.0000.0207.82
4.3.10.0000.0207.82
4.3.00.0030.0277.82

preferences:
53.01 ms | 400 KiB | 5 Q