3v4l.org

run code in 300+ PHP versions simultaneously
<?php $foo = "0123456789a123456789b123456789c"; //var_dump(strrpos($foo, '7', -5)); // Starts looking backwards five positions // from the end. Result: int(17) var_dump(strrpos($foo, '7', 20)); // Starts searching 20 positions into the // string. Result: int(27) //var_dump(strrpos($foo, '7', 1)); // Result: bool(false) ?>

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.00916.38
8.3.50.0090.01022.12
8.3.40.0140.00718.60
8.3.30.0140.00018.71
8.3.20.0070.00320.21
8.3.10.0000.00723.61
8.3.00.0040.00419.00
8.2.180.0150.00016.50
8.2.170.0040.01122.96
8.2.160.0030.01320.25
8.2.150.0040.00424.18
8.2.140.0050.00224.66
8.2.130.0080.00026.16
8.2.120.0040.00422.31
8.2.110.0000.00922.23
8.2.100.0100.00617.78
8.2.90.0000.00819.27
8.2.80.0040.00417.97
8.2.70.0000.00817.50
8.2.60.0000.00817.65
8.2.50.0030.00518.07
8.2.40.0040.00417.84
8.2.30.0020.00518.02
8.2.20.0050.00217.66
8.2.10.0040.00419.80
8.2.00.0000.01117.52
8.1.280.0110.00425.92
8.1.270.0040.00423.79
8.1.260.0030.00626.35
8.1.250.0070.00028.09
8.1.240.0170.00323.75
8.1.230.0080.00419.20
8.1.220.0040.00417.74
8.1.210.0030.00518.77
8.1.200.0090.00017.36
8.1.190.0090.00017.50
8.1.180.0040.00418.10
8.1.170.0000.00818.49
8.1.160.0070.00021.94
8.1.150.0000.00718.60
8.1.140.0040.00417.30
8.1.130.0000.00817.72
8.1.120.0030.00317.28
8.1.110.0000.00817.37
8.1.100.0070.00017.42
8.1.90.0000.00717.38
8.1.80.0000.00717.32
8.1.70.0000.00717.34
8.1.60.0040.00417.52
8.1.50.0000.00817.30
8.1.40.0040.00417.39
8.1.30.0040.00417.50
8.1.20.0060.00317.54
8.1.10.0050.00317.41
8.1.00.0000.00817.31
8.0.300.0000.00718.77
8.0.290.0030.00316.92
8.0.280.0000.00718.27
8.0.270.0030.00317.10
8.0.260.0060.00017.10
8.0.250.0000.00716.73
8.0.240.0080.00016.92
8.0.230.0000.00816.74
8.0.220.0020.00516.88
8.0.210.0040.00416.87
8.0.200.0050.00316.76
8.0.190.0040.00416.78
8.0.180.0040.00416.82
8.0.170.0000.00816.84
8.0.160.0000.00816.81
8.0.150.0000.00716.73
8.0.140.0070.00016.81
8.0.130.0000.00613.25
8.0.120.0000.00816.73
8.0.110.0040.00416.77
8.0.100.0000.00816.85
8.0.90.0020.00516.79
8.0.80.0120.00316.70
8.0.70.0000.00816.69
8.0.60.0040.00416.69
8.0.50.0040.00416.72
8.0.30.0140.00517.06
8.0.20.0110.01017.40
8.0.10.0030.00316.79
8.0.00.0100.00716.76
7.4.330.0030.00315.09
7.4.320.0030.00316.54
7.4.300.0030.00316.45
7.4.290.0080.00016.59
7.4.280.0000.00616.45
7.4.270.0030.00316.48
7.4.260.0070.00016.43
7.4.250.0000.00716.46
7.4.240.0050.00216.50
7.4.230.0040.00416.60
7.4.220.0170.00616.50
7.4.210.0080.00716.50
7.4.200.0030.00316.52
7.4.190.0030.00316.57
7.4.160.0060.01116.45
7.4.150.0040.01417.40
7.4.140.0100.01317.86
7.4.130.0080.00816.38
7.4.120.0090.00816.45
7.4.110.0030.01616.36
7.4.100.0130.00416.37
7.4.90.0230.00016.30
7.4.80.0100.01319.39
7.4.70.0090.00916.47
7.4.60.0130.00916.39
7.4.50.0030.00516.29
7.4.40.0130.00322.77
7.4.30.0100.00616.43
7.4.00.0000.01314.73
7.3.330.0000.00512.87
7.3.320.0030.00312.84
7.3.310.0070.00016.08
7.3.300.0060.00016.07
7.3.290.0120.00316.19
7.3.280.0070.00916.11
7.3.270.0100.00717.40
7.3.260.0070.01416.29
7.3.250.0110.01116.25
7.3.240.0120.00416.41
7.3.230.0130.00316.39
7.3.210.0140.00316.14
7.3.200.0090.00919.39
7.3.190.0110.01116.57
7.3.180.0060.01016.24
7.3.170.0060.00916.38
7.3.160.0100.00916.12
7.3.120.0030.00914.32
7.2.330.0100.01116.26
7.2.320.0070.01116.49
7.2.310.0060.01016.54
7.2.300.0030.01316.31
7.2.290.0130.00316.33
7.2.00.0030.01019.36
7.1.100.0060.00918.06
7.1.70.0000.00716.93
7.1.60.0070.01619.46
7.1.50.0040.01216.67
7.1.00.0000.07722.35
7.0.200.0070.00314.82
7.0.140.0100.06722.18
7.0.60.0230.04019.91
7.0.50.0100.05017.87
7.0.40.0070.06020.04
7.0.30.0230.04720.09
7.0.20.0230.08720.30
7.0.10.0030.09320.02
7.0.00.0070.08720.03
5.6.280.0030.07020.98
5.6.210.0070.08020.64
5.6.200.0070.08718.18
5.6.190.0070.05020.57
5.6.180.0500.03020.35
5.6.170.0300.07720.38
5.6.160.0100.07318.22
5.6.150.0100.07718.17
5.6.140.0130.07318.07
5.6.130.0070.08318.12
5.6.120.0100.08021.11
5.6.110.0170.07320.93
5.6.100.0070.04021.10
5.6.90.0130.07720.97
5.6.80.0130.07720.52
5.5.350.0200.06320.40
5.5.340.0130.05017.88
5.5.330.0070.08320.49
5.5.320.0170.04320.29
5.5.310.0200.04020.50
5.5.300.0100.05018.02
5.5.290.0030.04017.88
5.5.280.0170.07020.89
5.5.270.0170.06020.62
5.5.260.0030.04020.93
5.5.250.0100.06320.52
5.5.240.0230.07020.36
5.4.450.0570.07319.48
5.4.440.0630.05719.30
5.4.430.0070.06019.25
5.4.420.0130.05319.51
5.4.410.0170.04719.41
5.4.400.0100.05319.02
5.4.390.0170.04719.26
5.4.380.0270.05718.65
5.4.370.0200.05018.62
5.4.360.0130.05718.59
5.4.350.0270.05018.61
5.4.340.0300.06018.63
5.4.320.0060.03712.45
5.4.310.0040.03912.45
5.4.300.0080.03412.45
5.4.290.0070.03812.43
5.4.280.0080.03512.33
5.4.270.0060.04112.33
5.4.260.0080.04612.33
5.4.250.0050.04612.33
5.4.240.0140.04112.33
5.4.230.0120.04412.32
5.4.220.0090.04612.32
5.4.210.0090.04512.32
5.4.200.0150.04812.32
5.4.190.0140.07712.32
5.4.180.0140.07012.32
5.4.170.0190.06012.33
5.4.160.0310.09212.33
5.4.150.0200.06412.32
5.4.140.0170.08612.01
5.4.130.0210.06712.00
5.4.120.0280.07111.95
5.4.110.0220.07011.95
5.4.100.0090.04911.95
5.4.90.0220.06611.95
5.4.80.0150.07711.95
5.4.70.0100.06511.94
5.4.60.0110.05011.94
5.4.50.0080.05511.95
5.4.40.0110.05411.93
5.4.30.0080.04111.93
5.4.20.0110.05511.93
5.4.10.0170.05011.93
5.4.00.0060.04111.42
5.3.290.0040.04012.80
5.3.280.0090.03912.70
5.3.270.0060.04312.73
5.3.260.0080.04512.72
5.3.250.0110.05312.72
5.3.240.0080.05412.72
5.3.230.0080.04312.71
5.3.220.0100.03912.68
5.3.210.0110.04512.68
5.3.200.0080.05912.68
5.3.190.0110.03912.68
5.3.180.0050.04412.67
5.3.170.0060.04112.67
5.3.160.0060.04012.68
5.3.150.0070.04012.67
5.3.140.0090.05712.66
5.3.130.0090.05412.66
5.3.120.0090.07012.66
5.3.110.0050.06012.66
5.3.100.0080.04812.12
5.3.90.0090.03512.08
5.3.80.0130.04612.07
5.3.70.0110.04712.07
5.3.60.0060.05112.06
5.3.50.0060.04212.00
5.3.40.0080.04112.00
5.3.30.0080.03911.94
5.3.20.0100.03511.72
5.3.10.0090.03611.69
5.3.00.0100.04411.67
5.2.170.0070.0449.18
5.2.160.0090.0429.18
5.2.150.0110.0479.18
5.2.140.0090.0509.18
5.2.130.0080.0569.13
5.2.120.0090.0389.13
5.2.110.0090.0309.13
5.2.100.0100.0349.14
5.2.90.0080.0439.13
5.2.80.0060.0519.13
5.2.70.0080.0409.13
5.2.60.0090.0389.09
5.2.50.0080.0419.05
5.2.40.0130.0449.03
5.2.30.0060.0509.01
5.2.20.0120.0498.99
5.2.10.0120.0558.91
5.2.00.0060.0498.78
5.1.60.0070.0368.06
5.1.50.0040.0348.06
5.1.40.0040.0308.04
5.1.30.0070.0388.39
5.1.20.0060.0298.41
5.1.10.0070.0288.13
5.1.00.0220.0338.13
5.0.50.0040.0216.61
5.0.40.0070.0286.47
5.0.30.0080.0566.28
5.0.20.0060.0286.25
5.0.10.0050.0246.23
5.0.00.0190.0626.23
4.4.90.0020.0194.78
4.4.80.0030.0184.76
4.4.70.0020.0194.76
4.4.60.0070.0154.76
4.4.50.0070.0304.77
4.4.40.0030.0284.71
4.4.30.0130.0374.76
4.4.20.0100.0354.84
4.4.10.0050.0154.85
4.4.00.0070.0354.75
4.3.110.0050.0284.67
4.3.100.0050.0204.66
4.3.90.0050.0144.64
4.3.80.0190.1004.58
4.3.70.0060.0134.63
4.3.60.0020.0184.63
4.3.50.0060.0144.63
4.3.40.0060.0234.53
4.3.30.0000.0203.28
4.3.20.0020.0183.25
4.3.10.0040.0153.22
4.3.00.0030.0277.16

preferences:
43.13 ms | 401 KiB | 5 Q