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.0070.01016.38
8.3.50.0110.00521.92
8.3.40.0090.00618.49
8.3.30.0030.01018.98
8.3.20.0090.00020.04
8.3.10.0000.00723.65
8.3.00.0080.00019.25
8.2.180.0180.00418.54
8.2.170.0110.00322.96
8.2.160.0030.01020.52
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0000.00826.16
8.2.120.0040.00422.25
8.2.110.0030.00722.03
8.2.100.0040.00717.72
8.2.90.0000.00819.05
8.2.80.0000.00817.97
8.2.70.0040.00417.50
8.2.60.0070.00017.93
8.2.50.0050.00518.07
8.2.40.0050.00218.22
8.2.30.0050.00317.91
8.2.20.0050.00217.61
8.2.10.0040.00419.66
8.2.00.0030.00617.53
8.1.280.0060.01325.92
8.1.270.0040.00423.88
8.1.260.0070.00026.35
8.1.250.0070.00028.09
8.1.240.0060.00323.81
8.1.230.0070.00319.02
8.1.220.0070.00017.74
8.1.210.0030.00618.77
8.1.200.0030.00617.23
8.1.190.0030.00617.40
8.1.180.0040.00418.10
8.1.170.0000.00818.64
8.1.160.0040.00421.84
8.1.150.0040.00418.47
8.1.140.0040.00417.37
8.1.130.0030.00517.86
8.1.120.0030.00317.28
8.1.110.0040.00417.29
8.1.100.0040.00317.29
8.1.90.0000.01017.28
8.1.80.0000.00717.46
8.1.70.0030.00317.30
8.1.60.0000.00817.45
8.1.50.0080.00017.42
8.1.40.0050.00317.48
8.1.30.0000.00717.57
8.1.20.0000.00717.45
8.1.10.0070.00017.31
8.1.00.0000.00817.33
8.0.300.0040.00418.77
8.0.290.0000.00717.16
8.0.280.0030.00318.37
8.0.270.0000.00717.28
8.0.260.0030.00317.09
8.0.250.0030.00416.87
8.0.240.0030.00316.84
8.0.230.0000.00716.91
8.0.220.0070.00016.82
8.0.210.0070.00016.83
8.0.200.0030.00316.77
8.0.190.0030.00616.85
8.0.180.0080.00016.78
8.0.170.0040.00416.75
8.0.160.0000.00716.69
8.0.150.0050.00316.82
8.0.140.0070.00016.70
8.0.130.0000.00613.18
8.0.120.0030.00516.83
8.0.110.0080.00016.83
8.0.100.0000.00716.70
8.0.90.0000.00816.80
8.0.80.0070.01316.81
8.0.70.0040.00416.69
8.0.60.0000.00816.88
8.0.50.0000.00716.91
8.0.30.0070.01116.86
8.0.20.0130.00517.40
8.0.10.0040.00416.81
8.0.00.0130.00616.49
7.4.330.0050.00015.00
7.4.320.0030.00316.50
7.4.300.0030.00316.53
7.4.290.0030.00616.41
7.4.280.0070.00016.37
7.4.270.0000.00616.41
7.4.260.0070.00016.55
7.4.250.0000.00816.38
7.4.240.0020.00516.56
7.4.230.0040.00416.59
7.4.220.0060.01016.64
7.4.210.0090.00716.48
7.4.200.0040.00416.46
7.4.190.0000.00716.66
7.4.160.0040.01216.34
7.4.150.0070.01017.40
7.4.140.0090.01117.86
7.4.130.0080.00816.44
7.4.120.0090.00816.46
7.4.110.0040.01316.41
7.4.100.0070.01016.34
7.4.90.0080.00916.42
7.4.80.0100.00919.39
7.4.70.0030.01516.37
7.4.60.0110.00616.44
7.4.50.0030.00516.50
7.4.40.0030.01322.77
7.4.30.0030.01316.44
7.4.00.0140.00014.99
7.3.330.0060.00012.86
7.3.320.0060.00012.84
7.3.310.0000.00716.09
7.3.300.0000.00716.09
7.3.290.0030.01216.13
7.3.280.0080.00916.16
7.3.270.0070.01317.40
7.3.260.0120.00916.19
7.3.250.0100.01116.23
7.3.240.0110.00616.20
7.3.230.0150.00316.39
7.3.210.0120.00616.42
7.3.200.0100.01319.39
7.3.190.0200.00316.31
7.3.180.0040.01116.28
7.3.170.0090.00616.32
7.3.160.0090.00616.30
7.3.120.0000.00914.50
7.3.10.0000.01116.38
7.3.00.0040.01116.41
7.2.330.0090.01016.51
7.2.320.0180.00616.20
7.2.310.0120.00316.33
7.2.300.0100.00716.32
7.2.290.0160.00616.48
7.2.130.0040.00716.49
7.2.120.0090.00016.34
7.2.110.0000.01516.41
7.2.100.0070.00416.52
7.2.90.0060.01016.48
7.2.80.0110.00316.36
7.2.70.0070.01016.57
7.2.60.0040.00716.33
7.2.50.0090.00616.52
7.2.40.0030.01016.50
7.2.30.0040.00716.58
7.2.20.0130.00716.55
7.2.10.0110.00316.27
7.2.00.0070.00718.14
7.1.250.0040.00715.36
7.1.100.0000.00917.92
7.1.70.0030.01016.86
7.1.60.0070.01719.46
7.1.50.0120.00316.52
7.1.00.0070.07022.51
7.0.200.0120.00014.81
7.0.140.0070.07021.92
7.0.60.0100.04320.03
7.0.50.0030.08317.77
7.0.40.0030.05320.23
7.0.30.0300.08020.02
7.0.20.0270.04320.30
7.0.10.0130.08020.20
7.0.00.0170.06020.19
5.6.280.0030.07320.90
5.6.210.0100.07720.50
5.6.200.0100.03718.22
5.6.190.0070.08320.39
5.6.180.0570.06320.41
5.6.170.0200.08720.44
5.6.160.0000.04720.38
5.6.150.0070.08318.22
5.6.140.0000.04318.22
5.6.130.0170.07318.15
5.6.120.0130.07721.08
5.6.110.0170.07720.88
5.6.100.0100.07021.03
5.6.90.0130.04721.02
5.6.80.0070.05320.39
5.5.350.0370.07320.37
5.5.340.0030.08717.92
5.5.330.0030.05020.47
5.5.320.0200.05320.27
5.5.310.0330.07320.31
5.5.300.0030.05017.97
5.5.290.0070.05017.98
5.5.280.0100.04720.73
5.5.270.0100.06020.79
5.5.260.0070.07720.88
5.5.250.0130.07020.57
5.5.240.0030.07720.34
5.4.450.0670.05019.26
5.4.440.0600.06719.13
5.4.430.0700.06019.57
5.4.420.0200.06719.68
5.4.410.0230.06319.25
5.4.400.0070.05719.20
5.4.390.0070.05719.21
5.4.380.0600.06718.61
5.4.370.0230.05318.74
5.4.360.0400.03718.69
5.4.350.0430.04318.54
5.4.340.0130.06318.61
5.4.320.0090.03612.45
5.4.310.0050.05312.45
5.4.300.0070.04312.45
5.4.290.0050.04112.43
5.4.280.0070.04412.33
5.4.270.0070.03612.33
5.4.260.0090.04312.33
5.4.250.0080.03912.33
5.4.240.0040.03812.33
5.4.230.0060.04012.32
5.4.220.0040.04212.32
5.4.210.0070.04412.32
5.4.200.0080.04112.32
5.4.190.0040.04012.32
5.4.180.0070.03712.32
5.4.170.0080.04012.33
5.4.160.0070.03712.32
5.4.150.0060.03712.32
5.4.140.0060.04212.01
5.4.130.0080.03812.00
5.4.120.0070.03611.95
5.4.110.0060.03911.95
5.4.100.0070.03711.95
5.4.90.0090.03611.95
5.4.80.0150.03211.95
5.4.70.0090.03211.94
5.4.60.0080.03311.95
5.4.50.0070.03911.94
5.4.40.0090.03911.94
5.4.30.0090.07211.93
5.4.20.0060.05211.93
5.4.10.0090.03411.93
5.4.00.0070.03711.42
5.3.290.0040.04112.80
5.3.280.0070.04212.71
5.3.270.0080.05612.73
5.3.260.0040.05612.72
5.3.250.0050.03912.72
5.3.240.0040.04212.72
5.3.230.0060.04712.71
5.3.220.0040.04112.68
5.3.210.0060.04212.68
5.3.200.0080.03712.68
5.3.190.0060.03912.68
5.3.180.0090.03612.67
5.3.170.0100.03612.67
5.3.160.0060.03712.68
5.3.150.0100.05412.67
5.3.140.0090.05012.66
5.3.130.0090.05212.66
5.3.120.0100.05112.66
5.3.110.0100.04212.66
5.3.100.0090.05012.12
5.3.90.0040.03912.08
5.3.80.0070.03712.07
5.3.70.0110.04612.08
5.3.60.0060.03912.07
5.3.50.0100.03312.00
5.3.40.0050.04012.00
5.3.30.0050.04311.94
5.3.20.0110.03911.72
5.3.10.0100.04011.69
5.3.00.0090.04111.68
5.2.170.0070.0319.18
5.2.160.0060.0329.18
5.2.150.0070.0329.18
5.2.140.0040.0359.17
5.2.130.0060.0349.14
5.2.120.0060.0399.13
5.2.110.0040.0329.14
5.2.100.0080.0309.14
5.2.90.0110.0389.14
5.2.80.0070.0319.13
5.2.70.0070.0409.13
5.2.60.0050.0319.08
5.2.50.0080.0289.05
5.2.40.0030.0319.03
5.2.30.0080.0289.00
5.2.20.0130.0388.99
5.2.10.0070.0318.92
5.2.00.0060.0308.78
5.1.60.0020.0298.06
5.1.50.0030.0288.05
5.1.40.0100.0208.04
5.1.30.0070.0288.39
5.1.20.0070.0288.41
5.1.10.0060.0328.14
5.1.00.0070.0498.13
5.0.50.0050.0206.61
5.0.40.0030.0206.47
5.0.30.0040.0316.28
5.0.20.0030.0206.25
5.0.10.0050.0196.23
5.0.00.0050.0306.22
4.4.90.0050.0134.78
4.4.80.0030.0154.75
4.4.70.0050.0154.75
4.4.60.0040.0164.76
4.4.50.0050.0144.77
4.4.40.0050.0334.71
4.4.30.0040.0234.76
4.4.20.0050.0214.84
4.4.10.0070.0204.85
4.4.00.0060.0274.76
4.3.110.0040.0174.67
4.3.100.0040.0164.67
4.3.90.0040.0214.64
4.3.80.0070.0294.58
4.3.70.0040.0214.63
4.3.60.0040.0154.63
4.3.50.0000.0264.63
4.3.40.0050.0254.54
4.3.30.0030.0153.28
4.3.20.0030.0163.26
4.3.10.0030.0163.22
4.3.00.0100.0237.17

preferences:
43.02 ms | 401 KiB | 5 Q