3v4l.org

run code in 300+ PHP versions simultaneously
<?php $mystring = 'abc'; $findme = '-'; $pos = strpos($mystring, $findme); // The !== operator can also be used. Using != would not work as expected // because the position of 'a' is 0. The statement (0 != false) evaluates // to false. 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.60.0070.00718.43
8.3.50.0100.01021.91
8.3.40.0140.00018.72
8.3.30.0100.01018.89
8.3.20.0050.00220.20
8.3.10.0050.00321.95
8.3.00.0050.00319.21
8.2.180.0140.00416.38
8.2.170.0070.01022.96
8.2.160.0090.00920.47
8.2.150.0040.00424.18
8.2.140.0000.00724.66
8.2.130.0080.00826.16
8.2.120.0090.00922.26
8.2.110.0060.00322.10
8.2.100.0100.01117.42
8.2.90.0000.00917.75
8.2.80.0040.00417.97
8.2.70.0000.00817.79
8.2.60.0000.00918.22
8.2.50.0040.00418.10
8.2.40.0000.00719.29
8.2.30.0030.00320.61
8.2.20.0050.00217.63
8.2.10.0000.00717.99
8.2.00.0080.00017.81
8.1.280.0080.00825.92
8.1.270.0040.00418.71
8.1.260.0080.00026.35
8.1.250.0050.00328.09
8.1.240.0030.00620.73
8.1.230.0070.00417.77
8.1.220.0050.00317.91
8.1.210.0080.00018.77
8.1.200.0040.00417.22
8.1.190.0040.00417.11
8.1.180.0000.00818.10
8.1.170.0040.00418.59
8.1.160.0040.00418.88
8.1.150.0000.00718.79
8.1.140.0040.00417.39
8.1.130.0050.00317.71
8.1.120.0030.00317.39
8.1.110.0000.01017.39
8.1.100.0040.00417.34
8.1.90.0000.00717.29
8.1.80.0000.00717.38
8.1.70.0000.00717.41
8.1.60.0000.00817.45
8.1.50.0040.00417.35
8.1.40.0030.01017.31
8.1.30.0050.00317.61
8.1.20.0050.00317.42
8.1.10.0040.00417.42
8.1.00.0040.00417.46
8.0.300.0000.00818.77
8.0.290.0000.00816.63
8.0.280.0040.00418.45
8.0.270.0040.00417.18
8.0.260.0040.00417.27
8.0.250.0000.00717.00
8.0.240.0000.00617.00
8.0.230.0040.00416.86
8.0.220.0090.00016.95
8.0.210.0040.00416.91
8.0.200.0000.00816.84
8.0.190.0040.00516.86
8.0.180.0050.00316.93
8.0.170.0040.00416.87
8.0.160.0000.00816.73
8.0.150.0080.00016.83
8.0.140.0000.00716.74
8.0.130.0040.00413.35
8.0.120.0080.00016.88
8.0.110.0000.00816.91
8.0.100.0040.00416.88
8.0.90.0000.00816.92
8.0.80.0100.00716.84
8.0.70.0040.00416.79
8.0.60.0050.00216.76
8.0.50.0040.00416.72
8.0.30.0100.00917.23
8.0.20.0080.01317.40
8.0.10.0050.00216.79
8.0.00.0040.01316.78
7.4.330.0000.00515.19
7.4.320.0000.00616.60
7.4.300.0000.00616.41
7.4.290.0030.00316.52
7.4.280.0030.00516.57
7.4.270.0000.00716.55
7.4.260.0030.00316.53
7.4.250.0000.00716.57
7.4.240.0020.00516.52
7.4.230.0070.00016.48
7.4.220.0130.00616.66
7.4.210.0070.01016.55
7.4.200.0030.00516.49
7.4.160.0120.00316.48
7.4.150.0110.00617.40
7.4.140.0090.00817.86
7.4.130.0060.01016.54
7.4.120.0080.00816.41
7.4.110.0140.01116.57
7.4.100.0120.00616.57
7.4.90.0160.00616.45
7.4.80.0000.01719.39
7.4.70.0080.00816.46
7.4.60.0060.00916.56
7.4.50.0000.00416.43
7.4.40.0080.00916.36
7.4.30.0120.00616.41
7.4.10.0120.00616.39
7.4.00.0070.00915.41
7.3.330.0030.00313.11
7.3.320.0060.00013.04
7.3.310.0070.00016.27
7.3.300.0030.00316.15
7.3.290.0080.00816.19
7.3.280.0060.01316.18
7.3.270.0030.01517.40
7.3.260.0030.01416.34
7.3.250.0130.00716.23
7.3.240.0170.00016.41
7.3.230.0100.00616.39
7.3.210.0110.01216.42
7.3.200.0060.01219.39
7.3.190.0110.00816.36
7.3.180.0040.01716.29
7.3.170.0070.01016.51
7.3.160.0120.00616.57
7.3.130.0000.01916.41
7.3.120.0150.00015.44
7.3.110.0080.00815.26
7.3.100.0050.00815.24
7.3.90.0040.01015.25
7.3.80.0040.00715.34
7.3.70.0070.00515.29
7.3.60.0040.00615.27
7.3.50.0040.00915.22
7.3.40.0070.00515.15
7.3.30.0040.01015.20
7.3.20.0070.00617.08
7.3.10.0060.00617.24
7.3.00.0050.00916.96
7.2.330.0090.00616.57
7.2.320.0120.00916.64
7.2.310.0070.01016.67
7.2.300.0130.00316.51
7.2.290.0150.00616.41
7.2.260.0030.01416.52
7.2.250.0050.01215.52
7.2.240.0070.00915.54
7.2.230.0100.00715.29
7.2.220.0060.00815.33
7.2.210.0070.00715.24
7.2.200.0060.00915.61
7.2.190.0080.00815.51
7.2.180.0070.00915.46
7.2.170.0070.00515.46
7.2.160.0130.00316.45
7.2.150.0100.01018.27
7.2.140.0060.01218.32
7.2.130.0070.01018.18
7.2.120.0000.01018.45
7.2.110.0070.00718.28
7.2.100.0030.00718.44
7.2.90.0100.00318.32
7.2.80.0040.01118.16
7.2.70.0100.01018.23
7.2.60.0070.01018.42
7.2.50.0070.01118.30
7.2.40.0070.00718.32
7.2.30.0120.00318.41
7.2.20.0030.01018.25
7.2.10.0060.00618.22
7.2.00.0050.00718.80
7.1.330.0080.00716.12
7.1.320.0050.00716.41
7.1.310.0050.00916.38
7.1.300.0100.00416.25
7.1.290.0050.00916.29
7.1.280.0030.00816.27
7.1.270.0040.00716.15
7.1.260.0060.00616.26
7.1.250.0000.01517.18
7.1.240.0160.00317.23
7.1.230.0090.00917.18
7.1.220.0030.01317.31
7.1.210.0040.00917.33
7.1.200.0100.01017.23
7.1.190.0130.00017.13
7.1.180.0060.00917.21
7.1.170.0060.01017.36
7.1.160.0110.00416.96
7.1.150.0140.00017.22
7.1.140.0110.00417.21
7.1.130.0000.01017.30
7.1.120.0090.00017.33
7.1.110.0070.00717.27
7.1.100.0020.01017.67
7.1.90.0070.00717.29
7.1.80.0080.00417.42
7.1.70.0020.00817.20
7.1.60.0080.01018.38
7.1.50.0070.01117.04
7.1.40.0030.01017.31
7.1.30.0030.01017.37
7.1.20.0070.00717.35
7.1.10.0100.01017.38
7.1.00.0050.04319.68
7.0.330.0040.00817.05
7.0.320.0060.00916.96
7.0.310.0000.01017.16
7.0.300.0060.00916.97
7.0.290.0100.00316.73
7.0.280.0030.00717.00
7.0.270.0030.00617.14
7.0.260.0030.01016.99
7.0.250.0060.00617.22
7.0.240.0040.01116.99
7.0.230.0030.01017.03
7.0.220.0030.00716.88
7.0.210.0030.00717.07
7.0.200.0060.00816.77
7.0.190.0030.00717.11
7.0.180.0000.00917.05
7.0.170.0120.00017.04
7.0.160.0140.00016.89
7.0.150.0040.00716.94
7.0.140.0080.01819.46
7.0.130.0100.00316.97
7.0.120.0030.01717.11
7.0.110.0070.03218.52
7.0.100.0080.03118.44
7.0.90.0090.04318.43
7.0.80.0050.03618.38
7.0.70.0080.04718.46
7.0.60.0100.04018.46
7.0.50.0060.03918.46
7.0.40.0110.04017.37
7.0.30.0100.03717.46
7.0.20.0060.03517.36
7.0.10.0100.03917.36
7.0.00.0050.04317.30
5.6.400.0090.00615.93
5.6.390.0080.00815.94
5.6.380.0090.00616.11
5.6.370.0100.00715.72
5.6.360.0030.00716.03
5.6.350.0060.00616.12
5.6.340.0070.00416.00
5.6.330.0070.00715.79
5.6.320.0030.00615.78
5.6.310.0080.00315.90
5.6.300.0140.00615.88
5.6.290.0040.01215.68
5.6.280.0020.04518.52
5.6.270.0130.00615.88
5.6.260.0070.03618.31
5.6.250.0100.02018.35
5.6.240.0050.04918.38
5.6.230.0070.04418.35
5.6.220.0160.03618.33
5.6.210.0050.04618.23
5.6.200.0090.03818.12
5.6.190.0070.02518.22
5.6.180.0070.03518.20
5.6.170.0060.01818.21
5.6.160.0080.03818.13
5.6.150.0090.03618.16
5.6.140.0070.04118.13
5.6.130.0030.04118.17
5.6.120.0080.02118.26
5.6.110.0030.05018.19
5.6.100.0060.02618.29
5.6.90.0050.04218.23
5.6.80.0030.02817.88
5.6.70.0000.02917.83
5.6.60.0050.02418.03
5.6.50.0050.02017.80
5.6.40.0100.02017.88
5.6.30.0050.03217.93
5.6.20.0040.02217.96
5.6.10.0070.02417.75
5.6.00.0030.02117.90
5.5.380.0080.03216.66
5.5.370.0070.02216.48
5.5.360.0040.04216.83
5.5.350.0050.04516.52
5.5.340.0070.02416.72
5.5.330.0020.04316.76
5.5.320.0050.03016.76
5.5.310.0080.04516.67
5.5.300.0060.02416.90
5.5.290.0100.03516.82
5.5.280.0020.04616.92
5.5.270.0040.02616.77
5.5.260.0060.04316.89
5.5.250.0050.02116.81
5.5.240.0060.02316.53
5.5.230.0090.03416.57
5.5.220.0090.02716.53
5.5.210.0030.02816.56
5.5.200.0090.02216.42
5.5.190.0070.02916.36
5.5.180.0050.02016.30
5.5.170.0040.01115.59
5.5.160.0030.02316.50
5.5.150.0090.03816.41
5.5.140.0070.02016.28
5.5.130.0030.03216.48
5.5.120.0050.03016.59
5.5.110.0070.04116.56
5.5.100.0090.03016.40
5.5.90.0060.04316.55
5.5.80.0070.04216.40
5.5.70.0070.04516.43
5.5.60.0080.03816.50
5.5.50.0090.03616.30
5.5.40.0020.04416.32
5.5.30.0030.02316.34
5.5.20.0050.03216.36
5.5.10.0070.03816.53
5.5.00.0030.04716.47
5.4.450.0030.04415.91
5.4.440.0100.03315.92
5.4.430.0050.04015.90
5.4.420.0000.04615.93
5.4.410.0020.03315.88
5.4.400.0100.03015.81
5.4.390.0020.02415.67
5.4.380.0020.04215.84
5.4.370.0000.02515.72
5.4.360.0050.02315.66
5.4.350.0040.02115.74
5.4.340.0070.01915.67
5.4.330.0070.00712.55
5.4.320.0050.01815.78
5.4.310.0030.03715.65
5.4.300.0120.03315.66
5.4.290.0040.03415.68
5.4.280.0020.02315.82
5.4.270.0080.03015.63
5.4.260.0110.02815.77
5.4.250.0080.04015.63
5.4.240.0040.02715.83
5.4.230.0020.02215.72
5.4.220.0020.04415.71
5.4.210.0090.03215.83
5.4.200.0020.02615.69
5.4.190.0020.04415.69
5.4.180.0100.03615.78
5.4.170.0030.04215.71
5.4.160.0120.03515.69
5.4.150.0030.03615.73
5.4.140.0100.03514.38
5.4.130.0080.03614.34
5.4.120.0070.03814.44
5.4.110.0080.03814.48
5.4.100.0040.04914.42
5.4.90.0050.02414.38
5.4.80.0090.03314.32
5.4.70.0090.03914.50
5.4.60.0020.02414.40
5.4.50.0050.01814.28
5.4.40.0040.03914.52
5.4.30.0070.02814.50
5.4.20.0030.02514.40
5.4.10.0040.03114.32
5.4.00.0050.02314.12
5.3.290.0000.03314.59
5.3.280.0030.07314.42
5.3.270.0070.03314.67
5.3.260.0030.08014.48
5.3.250.0000.06314.51
5.3.240.0030.03714.52
5.3.230.0000.04014.51
5.3.220.0100.06314.56
5.3.210.0000.08714.64
5.3.200.0170.06314.64
5.3.190.0130.02714.56
5.3.180.0070.07314.48
5.3.170.0030.07714.35
5.3.160.0070.04714.45
5.3.150.0030.03714.35
5.3.140.0000.04714.45
5.3.130.0070.04014.33
5.3.120.0070.05714.39
5.3.110.0000.04314.58
5.3.100.0070.04013.98
5.3.90.0130.06014.02
5.3.80.0100.04013.94
5.3.70.0170.06713.93
5.3.60.0100.03713.86
5.3.50.0100.03713.89
5.3.40.0000.06713.73
5.3.30.0130.07013.80
5.3.20.0100.08013.70
5.3.10.0100.05013.55
5.3.00.0000.05013.57
5.2.170.0030.05711.91
5.2.160.0130.05311.91
5.2.150.0070.03311.91
5.2.140.0030.04711.91
5.2.130.0070.04711.91
5.2.120.0070.04011.91
5.2.110.0070.04311.91
5.2.100.0070.03311.91
5.2.90.0070.03311.91
5.2.80.0030.05711.91
5.2.70.0100.05011.91
5.2.60.0030.05311.91
5.2.50.0030.03711.91
5.2.40.0000.03711.91
5.2.30.0000.05711.91
5.2.20.0030.03711.91
5.2.10.0030.04011.91
5.2.00.0000.03011.91
5.1.60.0030.02311.91
5.1.50.0070.02711.91
5.1.40.0000.03011.91
5.1.30.0070.02711.91
5.1.20.0070.03011.91
5.1.10.0000.02711.91
5.1.00.0030.02311.91
5.0.50.0000.02311.91
5.0.40.0000.02011.91
5.0.30.0030.03011.91
5.0.20.0000.02011.91
5.0.10.0030.02311.91
5.0.00.0000.03011.91
4.4.90.0000.02011.91
4.4.80.0030.03311.91
4.4.70.0000.03011.91
4.4.60.0000.03011.91
4.4.50.0000.02711.91
4.4.40.0030.04011.91
4.4.30.0070.01711.91
4.4.20.0030.02711.91
4.4.10.0030.01311.91
4.4.00.0130.02311.91
4.3.110.0000.01311.91
4.3.100.0030.01311.91
4.3.90.0000.02011.91
4.3.80.0000.02711.91
4.3.70.0000.02011.91
4.3.60.0000.03011.91
4.3.50.0000.03011.91
4.3.40.0000.02311.91
4.3.30.0030.02711.91
4.3.20.0000.03311.91
4.3.10.0030.02311.91
4.3.00.0000.02011.91

preferences:
68.74 ms | 401 KiB | 5 Q