3v4l.org

run code in 300+ PHP versions simultaneously
<?php $mystring = 'new5523eff221f98'; $findme = 'new'; $pos = strpos($mystring, $findme); // Note our use of ===. Simply == would not work as expected // because the position of 'a' was the 0th (first) character. if ($pos === false) { echo "The string '$findme' was not found in the string '$mystring'"; } else { echo "The string '$findme' was found in the string '$mystring'"; echo " and exists at position $pos"; }

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.0130.00718.43
8.3.50.0170.00321.92
8.3.40.0180.00418.71
8.3.30.0140.00319.15
8.3.20.0080.00020.16
8.3.10.0000.00821.61
8.3.00.0040.00419.11
8.2.180.0090.00918.54
8.2.170.0120.00622.96
8.2.160.0090.00622.25
8.2.150.0050.00324.18
8.2.140.0080.00024.66
8.2.130.0000.00826.16
8.2.120.0040.00419.66
8.2.110.0090.00020.26
8.2.100.0040.00718.09
8.2.90.0030.00519.03
8.2.80.0000.00917.97
8.2.70.0090.00017.63
8.2.60.0000.00818.03
8.2.50.0000.00918.07
8.2.40.0040.00418.21
8.2.30.0040.00417.94
8.2.20.0000.00817.73
8.2.10.0020.00518.18
8.2.00.0050.00317.73
8.1.280.0070.01125.92
8.1.270.0000.00818.72
8.1.260.0050.00326.35
8.1.250.0000.00828.09
8.1.240.0080.00022.05
8.1.230.0060.00619.12
8.1.220.0000.00817.74
8.1.210.0000.00818.77
8.1.200.0040.00417.36
8.1.190.0000.00817.23
8.1.180.0030.00518.10
8.1.170.0060.00318.45
8.1.160.0070.00021.87
8.1.150.0040.00418.81
8.1.140.0040.00417.32
8.1.130.0030.00317.85
8.1.120.0040.00417.29
8.1.110.0000.00717.44
8.1.100.0050.00317.27
8.1.90.0040.00417.43
8.1.80.0000.00817.27
8.1.70.0030.00317.41
8.1.60.0030.00917.52
8.1.50.0060.00317.34
8.1.40.0040.00417.34
8.1.30.0000.00817.57
8.1.20.0070.00317.62
8.1.10.0080.00017.50
8.1.00.0060.00617.29
8.0.300.0040.00418.77
8.0.290.0000.00716.63
8.0.280.0000.00718.50
8.0.270.0030.00317.21
8.0.260.0030.00317.18
8.0.250.0080.00016.89
8.0.240.0030.00516.83
8.0.230.0030.00416.83
8.0.220.0000.00616.85
8.0.210.0050.00316.85
8.0.200.0060.00016.92
8.0.190.0040.00316.99
8.0.180.0000.00716.82
8.0.170.0030.00616.95
8.0.160.0040.00416.88
8.0.150.0000.00716.81
8.0.140.0030.00716.74
8.0.130.0000.00613.31
8.0.120.0070.00016.87
8.0.110.0040.00416.71
8.0.100.0000.00716.78
8.0.90.0000.00716.77
8.0.80.0120.00316.84
8.0.70.0000.00716.73
8.0.60.0040.00416.82
8.0.50.0040.00416.89
8.0.30.0070.01417.13
8.0.20.0140.01117.40
8.0.10.0040.00417.06
8.0.00.0130.00616.88
7.4.330.0030.00315.05
7.4.320.0070.00016.46
7.4.300.0000.00616.45
7.4.290.0030.00316.50
7.4.280.0070.00016.52
7.4.270.0000.00616.41
7.4.260.0000.00816.60
7.4.250.0000.00816.49
7.4.240.0030.00416.57
7.4.230.0030.00316.57
7.4.220.0070.01016.47
7.4.210.0060.00916.55
7.4.200.0030.00316.58
7.4.160.0090.00616.57
7.4.150.0090.00917.40
7.4.140.0120.01217.86
7.4.130.0080.00816.52
7.4.120.0070.01016.51
7.4.110.0040.01516.48
7.4.100.0100.00716.61
7.4.90.0040.01516.48
7.4.80.0000.01819.39
7.4.70.0160.00616.42
7.4.60.0120.00616.43
7.4.50.0000.00716.34
7.4.40.0130.00316.40
7.4.30.0100.01416.66
7.4.00.0070.00714.94
7.3.330.0030.00312.95
7.3.320.0000.00513.04
7.3.310.0000.00716.36
7.3.300.0040.00416.15
7.3.290.0070.00716.18
7.3.280.0090.00916.22
7.3.270.0110.00817.40
7.3.260.0070.01116.13
7.3.250.0090.01016.32
7.3.240.0110.00616.14
7.3.230.0070.01016.39
7.3.210.0000.01516.43
7.3.200.0090.00919.39
7.3.190.0060.01016.31
7.3.180.0060.01216.29
7.3.170.0070.00916.27
7.3.160.0110.00516.32
7.2.330.0030.01316.52
7.2.320.0070.01716.61
7.2.310.0060.01316.78
7.2.300.0100.00716.44
7.2.290.0110.00816.59
7.2.00.0090.00619.04
7.1.200.0070.00715.91
7.1.100.0000.01218.08
7.1.70.0040.00417.03
7.1.60.0070.01419.46
7.1.50.0040.00716.64
7.1.00.0070.07722.57
7.0.200.0190.00315.06
7.0.140.0030.03722.23
7.0.60.0030.07019.90
7.0.50.0130.06017.80
7.0.40.0130.06320.40
7.0.30.0200.04320.16
7.0.20.0300.05720.17
7.0.10.0070.08320.18
7.0.00.0100.04720.01
5.6.280.0070.06321.07
5.6.210.0070.04320.64
5.6.200.0070.08018.17
5.6.190.0070.04020.27
5.6.180.0470.05720.39
5.6.170.0230.08320.49
5.6.160.0000.04320.49
5.6.150.0070.05718.14
5.6.140.0070.08018.23
5.6.130.0170.05718.11
5.6.120.0000.05321.00
5.6.110.0170.07720.95
5.6.100.0070.08320.88
5.6.90.0100.06721.10
5.6.80.0030.06720.50
5.5.350.0300.07320.44
5.5.340.0030.06717.91
5.5.330.0230.04320.40
5.5.320.0000.04720.51
5.5.310.0170.03720.23
5.5.300.0000.04317.90
5.5.290.0130.07317.92
5.5.280.0200.07020.79
5.5.270.0070.06020.74
5.5.260.0170.07320.75
5.5.250.0000.05720.46
5.5.240.0000.06020.34
5.4.450.0730.06019.41
5.4.440.0570.06319.32
5.4.430.0100.05719.45
5.4.420.0070.05719.48
5.4.410.0200.04319.40
5.4.400.0070.06019.06
5.4.390.0130.05318.77
5.4.380.0100.06018.57
5.4.370.0200.04718.58
5.4.360.0230.04318.54
5.4.350.0230.04718.44
5.4.340.0230.04318.74
5.4.320.0170.05318.78
5.4.310.0070.06018.53
5.4.300.0200.05018.68
5.4.290.0230.04018.73
5.4.280.0230.04718.68
5.4.270.0170.05318.77
5.4.260.0300.04018.44
5.4.250.0130.06718.68
5.4.240.0170.05718.43
5.4.230.0170.05018.54
5.4.220.0130.05718.46
5.4.210.0170.05018.48
5.4.200.0100.05316.49
5.4.190.0230.04318.55
5.4.180.0130.05318.51
5.4.170.0100.06018.76
5.4.160.0170.05318.46
5.4.150.0200.04718.64
5.4.140.0100.05716.29
5.4.130.0030.06016.29
5.4.120.0130.05016.25
5.4.110.0270.04316.28
5.4.100.0130.05316.19
5.4.90.0130.05316.15
5.4.80.0130.05316.33
5.4.70.0200.04716.16
5.4.60.0100.05316.17
5.4.50.0100.05716.01
5.4.40.0130.05316.21
5.4.30.0100.05316.25
5.4.20.0170.05016.15
5.4.10.0170.05316.20
5.4.00.0130.05015.61
5.3.290.0200.05014.64
5.3.280.0100.05714.71
5.3.270.0230.05714.61
5.3.260.0130.05714.48
5.3.250.0130.05714.61
5.3.240.0170.05014.59
5.3.230.0170.06314.70
5.3.220.0170.05014.66
5.3.210.0200.04714.64
5.3.200.0170.05014.50
5.3.190.0100.05314.59
5.3.180.0130.05314.57
5.3.170.0130.06714.54
5.3.160.0070.06014.43
5.3.150.0200.04714.49
5.3.140.0130.05314.52
5.3.130.0130.06014.46
5.3.120.0200.05014.53
5.3.110.0200.05714.64
5.3.100.0130.05714.04
5.3.90.0200.04714.02
5.3.80.0270.03714.01
5.3.70.0100.05314.11
5.3.60.0200.04713.88
5.3.50.0230.05014.04
5.3.40.0130.05313.89
5.3.30.0130.05013.82
5.3.20.0130.05713.60
5.3.10.0070.06713.73
5.3.00.0200.04313.55
5.2.170.0030.05311.18
5.2.160.0100.05011.12
5.2.150.0130.04011.13
5.2.140.0170.03711.18
5.2.130.0100.04311.09
5.2.120.0100.04011.06
5.2.110.0100.04311.14
5.2.100.0230.03011.11
5.2.90.0100.04711.24
5.2.80.0130.04011.14
5.2.70.0100.04311.13
5.2.60.0130.04011.05
5.2.50.0230.03310.99
5.2.40.0070.04311.02
5.2.30.0070.04710.90
5.2.20.0070.04710.88
5.2.10.0130.04310.94
5.2.00.0030.05010.70
5.1.60.0130.03010.12
5.1.50.0170.02710.00
5.1.40.0130.0339.98
5.1.30.0230.02310.46
5.1.20.0130.04010.35
5.1.10.0100.03710.11
5.1.00.0130.03710.28
5.0.50.0100.0278.62
5.0.40.0070.0278.43
5.0.30.0100.0408.30
5.0.20.0070.0308.41
5.0.10.0100.0238.21
5.0.00.0070.0438.28
4.4.90.0030.0235.90
4.4.80.0030.0235.91
4.4.70.0100.0205.82
4.4.60.0030.0235.91
4.4.50.0000.0305.90
4.4.40.0030.0405.87
4.4.30.0070.0205.87
4.4.20.0030.0276.05
4.4.10.0000.0276.04
4.4.00.0070.0335.95
4.3.110.0000.0275.86
4.3.100.0070.0205.84
4.3.90.0100.0175.81
4.3.80.0130.0405.82
4.3.70.0070.0275.79
4.3.60.0070.0205.80
4.3.50.0070.0235.82
4.3.40.0170.0305.79
4.3.30.0070.0204.59
4.3.20.0030.0274.68
4.3.10.0070.0234.59
4.3.00.0230.0239.24

preferences:
44.09 ms | 401 KiB | 5 Q