3v4l.org

run code in 300+ PHP versions simultaneously
<?php $mystring = 'vabcsa'; $findme = 'a'; $pos = strpos($mystring, $findme,-1); if ($pos !== false) { echo "The string '$findme' was found in the string '$mystring'"; echo " and exists at position $pos"; } else { echo "The string '$findme' was not found in the string '$mystring'"; }

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.0130.00618.54
8.3.30.0070.00718.63
8.3.20.0040.00418.83
8.3.10.0040.00418.60
8.3.00.0040.00419.38
8.2.170.0040.01122.96
8.2.160.0120.00618.79
8.2.150.0130.00724.18
8.2.140.0060.00924.66
8.2.130.0000.00826.16
8.2.120.0060.00320.98
8.2.110.0060.00619.11
8.2.100.0100.00317.84
8.2.90.0040.00417.84
8.2.80.0080.00017.97
8.2.70.0030.00617.50
8.2.60.0060.00317.79
8.2.50.0090.00018.07
8.2.40.0040.00418.16
8.2.30.0070.00018.05
8.2.20.0040.00717.59
8.2.10.0080.00017.72
8.2.00.0030.00517.68
8.1.270.0060.00323.99
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0030.00619.15
8.1.230.0040.00821.02
8.1.220.0050.00317.74
8.1.210.0040.00419.04
8.1.200.0080.00417.13
8.1.190.0000.00717.53
8.1.180.0040.00418.10
8.1.170.0030.00618.75
8.1.160.0040.00418.75
8.1.150.0000.00818.48
8.1.140.0000.00717.30
8.1.130.0000.00717.83
8.1.120.0000.00717.42
8.1.110.0040.00417.34
8.1.100.0000.00717.38
8.1.90.0040.00417.45
8.1.80.0040.00417.38
8.1.70.0000.00817.29
8.1.60.0040.00417.53
8.1.50.0030.00617.40
8.1.40.0040.00417.42
8.1.30.0060.00317.48
8.1.20.0080.00017.55
8.1.10.0040.00417.53
8.1.00.0070.00017.44
8.0.300.0000.00919.94
8.0.290.0030.00316.63
8.0.280.0000.00718.45
8.0.270.0030.00317.25
8.0.260.0000.00616.84
8.0.250.0030.00616.87
8.0.240.0070.00016.97
8.0.230.0040.00416.86
8.0.220.0040.00416.86
8.0.210.0040.00416.85
8.0.200.0020.00516.97
8.0.190.0040.00416.93
8.0.180.0000.00716.85
8.0.170.0080.00016.80
8.0.160.0020.00516.82
8.0.150.0080.00016.82
8.0.140.0000.00916.82
8.0.130.0000.00513.36
8.0.120.0070.00016.91
8.0.110.0040.00416.90
8.0.100.0070.00016.77
8.0.90.0000.00816.84
8.0.80.0070.00716.77
8.0.70.0030.00516.86
8.0.60.0050.00216.92
8.0.50.0000.00716.91
8.0.30.0120.00617.14
8.0.20.0120.01016.97
8.0.10.0050.00216.99
8.0.00.0160.01116.86
7.4.330.0000.00512.98
7.4.320.0030.00316.45
7.4.300.0060.00016.49
7.4.290.0030.00316.51
7.4.280.0000.00716.42
7.4.270.0040.00416.46
7.4.260.0060.00013.20
7.4.250.0080.00016.48
7.4.240.0000.00716.46
7.4.230.0030.00316.43
7.4.220.0070.02016.66
7.4.210.0060.01216.63
7.4.200.0050.00316.48
7.4.190.0070.00016.31
7.4.160.0090.00616.38
7.4.150.0090.00916.59
7.4.140.0120.00416.49
7.4.130.0150.00716.54
7.4.120.0060.01016.27
7.4.110.0120.00816.46
7.4.100.0070.01016.56
7.4.90.0190.00316.57
7.4.80.0170.00019.39
7.4.70.0100.00716.65
7.4.60.0060.00916.52
7.4.50.0030.00616.41
7.4.40.0100.00616.36
7.4.30.0100.00716.52
7.4.00.0090.00615.16
7.3.330.0060.00013.18
7.3.320.0040.00412.93
7.3.310.0040.00416.08
7.3.300.0030.00316.14
7.3.290.0090.00616.21
7.3.280.0100.00716.21
7.3.270.0070.01016.50
7.3.260.0080.00816.14
7.3.250.0080.01216.34
7.3.240.0060.01116.28
7.3.230.0140.00316.25
7.3.210.0140.00316.24
7.3.200.0140.00916.37
7.3.190.0080.01416.23
7.3.180.0040.01216.30
7.3.170.0030.01316.38
7.3.160.0060.00916.23
7.3.120.0070.01014.76
7.2.330.0100.00716.67
7.2.320.0030.01416.50
7.2.310.0110.01416.36
7.2.300.0070.01016.56
7.2.290.0030.01316.40
7.2.60.0120.00316.67
7.2.00.0040.01119.31
7.1.200.0030.00915.80
7.1.100.0030.01018.27
7.1.70.0130.00017.16
7.1.60.0190.00319.30
7.1.50.0090.01316.88
7.1.00.0100.05722.28
7.0.200.0080.00516.76
7.0.140.0030.07322.08
7.0.120.0030.07322.13
7.0.60.0300.06020.07
7.0.50.0130.05017.90
7.0.40.0170.08020.08
7.0.30.0200.05320.02
7.0.20.0270.06720.16
7.0.10.0230.07320.20
7.0.00.0070.08320.29
5.6.280.0030.07320.89
5.6.210.0130.06020.62
5.6.200.0100.06018.12
5.6.190.0070.04020.56
5.6.180.0030.07320.41
5.6.170.0200.05020.71
5.6.160.0070.08320.33
5.6.150.0070.05718.20
5.6.140.0100.07018.12
5.6.130.0100.07018.18
5.6.120.0030.05321.03
5.6.110.0030.07021.11
5.6.100.0170.07321.02
5.6.90.0130.07720.98
5.6.80.0130.03320.44
5.5.350.0070.08020.42
5.5.340.0030.03718.03
5.5.330.0100.06720.57
5.5.320.0270.06320.25
5.5.310.0300.07720.30
5.5.300.0030.08018.02
5.5.290.0100.07317.98
5.5.280.0000.04720.68
5.5.270.0100.08320.86
5.5.260.0030.04720.75
5.5.250.0130.08020.61
5.5.240.0100.04020.29
5.4.450.0070.06319.13
5.4.440.0170.03319.41
5.4.430.0100.05019.46
5.4.420.0070.07019.48
5.4.410.0130.07319.29
5.4.400.0100.07318.79
5.4.390.0100.07319.12
5.4.380.0030.07318.81
5.4.370.0070.08019.14
5.4.360.0030.06319.14
5.4.350.0070.08018.79
5.4.340.0170.06018.79
5.4.320.0070.07718.91
5.4.310.0170.06019.09
5.4.300.0070.04718.80
5.4.290.0000.08018.92
5.4.280.0100.07018.93
5.4.270.0000.06719.04
5.4.260.0100.03718.91
5.4.250.0070.08019.15
5.4.240.0030.04019.11
5.4.230.0130.07019.14
5.4.220.0130.03019.13
5.4.210.0030.04018.90
5.4.200.0070.03318.78
5.4.190.0100.05319.07
5.4.180.0030.04719.07
5.4.170.0030.04719.04
5.4.160.0130.05019.06
5.4.150.0030.04018.77
5.4.140.0070.03316.35
5.4.130.0030.03716.20
5.4.120.0070.04016.43
5.4.110.0100.07016.61
5.4.100.0030.04016.32
5.4.90.0030.06016.41
5.4.80.0030.03716.30
5.4.70.0100.03316.35
5.4.60.0100.06716.32
5.4.50.0000.03716.38
5.4.40.0070.03316.32
5.4.30.0070.03316.32
5.4.20.0030.03316.34
5.4.10.0070.03316.27
5.4.00.0100.05315.79
5.3.290.0030.04014.60
5.3.280.0000.04714.53
5.3.270.0030.08314.58
5.3.260.0070.05714.70
5.3.250.0030.06014.55
5.3.240.0000.04014.55
5.3.230.0030.04314.61
5.3.220.0000.04714.53
5.3.210.0030.07314.46
5.3.200.0100.07314.36
5.3.190.0070.03314.66
5.3.180.0100.05714.50
5.3.170.0000.04314.50
5.3.160.0070.03714.50
5.3.150.0030.04314.54
5.3.140.0030.04714.48
5.3.130.0000.04014.51
5.3.120.0030.05014.48
5.3.110.0030.05014.36
5.3.100.0030.03713.97
5.3.90.0070.03313.96
5.3.80.0030.03713.94
5.3.70.0030.03313.80
5.3.60.0000.04013.95
5.3.50.0100.03013.78
5.3.40.0030.07013.89
5.3.30.0030.03713.72
5.3.20.0030.04013.48
5.3.10.0070.05713.61
5.3.00.0070.07713.57
5.2.170.0000.03011.09
5.2.160.0000.03711.04
5.2.150.0100.03311.00
5.2.140.0000.05011.08
5.2.130.0070.02710.95
5.2.120.0000.03011.02
5.2.110.0130.04711.04
5.2.100.0030.03311.09
5.2.90.0070.06011.09
5.2.80.0100.03711.04
5.2.70.0000.03310.99
5.2.60.0030.05711.00
5.2.50.0100.03010.95
5.2.40.0100.02711.00
5.2.30.0100.03710.86
5.2.20.0000.06010.82
5.2.10.0100.04710.87
5.2.00.0030.04710.59
5.1.60.0030.03710.02
5.1.50.0030.05310.00
5.1.40.0030.05010.03
5.1.30.0070.04310.39
5.1.20.0070.02310.37
5.1.10.0030.0279.98
5.1.00.0030.04010.15
5.0.50.0030.0478.63
5.0.40.0030.0438.41
5.0.30.0030.0378.23
5.0.20.0030.0408.25
5.0.10.0000.0308.16
5.0.00.0030.0638.19
4.4.90.0070.0208.03
4.4.80.0070.0238.03
4.4.70.0030.0338.03
4.4.60.0000.0378.03
4.4.50.0000.0378.03
4.4.40.0030.0308.03
4.4.30.0000.0208.03
4.4.20.0000.0178.03
4.4.10.0030.0308.03
4.4.00.0000.0308.03
4.3.110.0030.0208.03
4.3.100.0030.0338.03
4.3.90.0030.0238.03
4.3.80.0000.0508.03
4.3.70.0070.0308.03
4.3.60.0000.0238.03
4.3.50.0070.0208.03
4.3.40.0000.0578.03
4.3.30.0000.0238.03
4.3.20.0030.0338.03
4.3.10.0070.0338.03
4.3.00.0000.0378.03

preferences:
49.46 ms | 400 KiB | 5 Q