3v4l.org

run code in 300+ PHP versions simultaneously
<?php $mystring = 'abc'; $findme = 'a'; $pos = strpos($mystring, $findme); 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.70.0150.00016.58
8.3.60.0070.00718.43
8.3.50.0050.01321.08
8.3.40.0090.00618.69
8.3.30.0070.00720.21
8.3.20.0040.00420.49
8.3.10.0080.00021.13
8.3.00.0040.00423.53
8.2.180.0030.01316.50
8.2.170.0140.00022.96
8.2.160.0080.00520.38
8.2.150.0050.00324.18
8.2.140.0000.00824.66
8.2.130.0040.00426.16
8.2.120.0070.00020.98
8.2.110.0100.00019.27
8.2.100.0040.00917.91
8.2.90.0040.00419.23
8.2.80.0040.00417.97
8.2.70.0030.00617.63
8.2.60.0000.00818.04
8.2.50.0030.00618.07
8.2.40.0000.00818.16
8.2.30.0000.00719.36
8.2.20.0050.00317.77
8.2.10.0040.00417.76
8.2.00.0030.00817.73
8.1.280.0110.00425.92
8.1.270.0080.00023.99
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0080.00322.30
8.1.230.0110.00020.89
8.1.220.0000.00918.77
8.1.210.0070.00419.09
8.1.200.0060.00617.23
8.1.190.0030.00617.54
8.1.180.0040.00418.10
8.1.170.0000.00818.50
8.1.160.0040.00418.91
8.1.150.0000.00718.58
8.1.140.0000.00717.41
8.1.130.0000.00717.84
8.1.120.0000.00717.47
8.1.110.0000.00717.45
8.1.100.0000.00717.45
8.1.90.0050.00317.30
8.1.80.0000.00717.43
8.1.70.0030.00317.36
8.1.60.0000.00917.44
8.1.50.0030.00517.41
8.1.40.0030.00717.36
8.1.30.0040.00417.57
8.1.20.0040.00417.61
8.1.10.0040.00417.52
8.1.00.0000.00717.36
8.0.300.0000.00719.97
8.0.290.0070.00017.05
8.0.280.0070.00018.45
8.0.270.0050.00317.17
8.0.260.0000.00716.88
8.0.250.0080.00016.93
8.0.240.0000.00716.84
8.0.230.0050.00216.87
8.0.220.0070.00016.89
8.0.210.0000.00716.89
8.0.200.0040.00416.84
8.0.190.0000.00716.95
8.0.180.0050.00316.93
8.0.170.0030.00316.89
8.0.160.0000.00716.84
8.0.150.0030.00316.92
8.0.140.0000.00716.85
8.0.130.0000.00513.35
8.0.120.0050.00316.89
8.0.110.0030.00316.96
8.0.100.0080.00016.77
8.0.90.0000.00716.79
8.0.80.0100.00716.88
8.0.70.0040.00416.86
8.0.60.0020.00516.79
8.0.50.0040.00416.95
8.0.30.0110.00817.00
8.0.20.0100.00817.40
8.0.10.0040.00416.74
8.0.00.0180.02016.75
7.4.330.0000.00616.76
7.4.320.0070.00016.62
7.4.300.0060.00016.42
7.4.290.0000.00716.49
7.4.280.0080.00016.58
7.4.270.0000.00716.67
7.4.260.0050.00013.25
7.4.250.0040.00416.52
7.4.240.0000.00816.60
7.4.230.0050.00216.66
7.4.220.0040.01416.54
7.4.210.0080.00816.49
7.4.200.0030.00316.40
7.4.190.0000.00916.41
7.4.160.0000.01516.48
7.4.150.0210.00317.40
7.4.140.0130.00417.86
7.4.130.0100.00716.48
7.4.120.0070.01316.65
7.4.110.0100.00716.34
7.4.100.0100.00716.53
7.4.90.0130.00716.34
7.4.80.0070.01119.39
7.4.70.0070.01416.51
7.4.60.0060.00916.33
7.4.50.0040.00416.50
7.4.40.0110.00622.77
7.4.30.0070.01016.54
7.4.00.0030.01014.84
7.3.330.0050.00013.09
7.3.320.0030.00312.94
7.3.310.0070.00016.10
7.3.300.0070.00016.11
7.3.290.0000.01416.22
7.3.280.0100.00516.21
7.3.270.0120.00617.40
7.3.260.0060.01318.24
7.3.250.0080.01016.43
7.3.240.0090.01316.11
7.3.230.0100.00716.39
7.3.210.0110.00716.56
7.3.200.0160.00619.39
7.3.190.0130.00816.40
7.3.180.0070.00816.21
7.3.170.0070.01016.34
7.3.160.0100.00616.34
7.3.120.0110.00714.83
7.2.330.0080.00916.58
7.2.320.0090.01216.32
7.2.310.0120.01216.49
7.2.300.0030.01416.60
7.2.290.0090.00916.66
7.1.70.0030.00517.29
7.1.60.0030.02219.17
7.1.50.0130.01017.03
7.1.00.0100.05022.40
7.0.200.0000.00816.54
7.0.140.0000.07722.23
7.0.80.0330.04319.91
7.0.70.0370.06019.91
7.0.60.0500.07320.08
7.0.50.0530.08020.29
7.0.40.0070.04020.07
7.0.30.0030.07320.00
7.0.20.0170.07020.10
7.0.10.0030.04319.93
7.0.00.0170.07020.08
5.6.230.0030.08320.68
5.6.220.0070.05320.73
5.6.210.0030.06720.46
5.6.200.0030.06020.95
5.6.190.0130.05021.00
5.6.180.0100.04321.11
5.6.170.0000.04720.96
5.6.160.0000.06321.13
5.6.150.0070.05721.08
5.6.140.0100.07721.16
5.6.130.0100.06721.10
5.6.120.0070.05721.05
5.6.110.0070.05021.10
5.6.100.0100.08720.94
5.6.90.0130.07721.05
5.6.80.0070.04020.40
5.6.70.0070.07020.39
5.6.60.0130.07320.38
5.6.50.0070.08020.43
5.6.40.0130.07720.49
5.6.30.0130.07720.42
5.6.20.0170.07720.45
5.6.10.0230.07020.46
5.6.00.0130.07020.44
5.5.370.0030.04320.51
5.5.360.0070.04020.53
5.5.350.0030.04320.41
5.5.340.0030.04320.76
5.5.330.0070.08020.77
5.5.320.0030.07720.77
5.5.310.0070.08020.87
5.5.300.0070.06720.87
5.5.290.0070.06020.92
5.5.280.0030.06020.87
5.5.270.0070.07720.88
5.5.260.0130.07720.81
5.5.250.0100.07720.60
5.5.240.0070.07020.29
5.5.230.0030.08320.13
5.5.220.0100.06020.26
5.5.210.0100.07320.21
5.5.200.0100.07020.11
5.5.190.0030.08320.27
5.5.180.0100.05720.15
5.5.160.0000.08720.23
5.5.150.0170.07020.17
5.5.140.0100.07720.27
5.5.130.0070.05320.24
5.5.120.0070.05320.07
5.5.110.0070.06320.07
5.5.100.0030.08019.98
5.5.90.0030.08020.04
5.5.80.0070.06720.00
5.5.70.0070.06320.00
5.5.60.0030.05720.02
5.5.50.0100.07320.14
5.5.40.0100.08019.99
5.5.30.0030.07319.98
5.5.20.0100.04019.88
5.5.10.0100.07719.97
5.5.00.0170.07020.02
5.4.450.0030.03319.29
5.4.440.0200.06319.23
5.4.430.0030.07319.26
5.4.420.0100.08019.55
5.4.410.0100.07019.10
5.4.400.0170.06019.12
5.4.390.0100.04318.98
5.4.380.0130.07018.81
5.4.370.0100.07318.98
5.4.360.0070.07319.11
5.4.350.0070.07019.10
5.4.340.0100.05019.23
5.4.320.0200.06318.79
5.4.310.0000.06018.81
5.4.300.0100.06318.98
5.4.290.0130.05319.11
5.4.280.0000.04718.97
5.4.270.0070.07318.89
5.4.260.0000.07718.80
5.4.250.0030.08018.94
5.4.240.0100.05719.07
5.4.230.0030.07718.97
5.4.220.0000.09018.94
5.4.210.0100.05719.22
5.4.200.0070.07319.07
5.4.190.0070.05019.21
5.4.180.0200.03019.21
5.4.170.0170.07319.02
5.4.160.0070.05318.94
5.4.150.0100.05719.07
5.4.140.0030.08016.37
5.4.130.0100.06716.27
5.4.120.0030.04716.27
5.4.110.0100.07016.45
5.4.100.0000.05716.33
5.4.90.0070.07316.40
5.4.80.0070.07316.45
5.4.70.0070.07316.19
5.4.60.0100.07316.28
5.4.50.0100.04016.30
5.4.40.0130.06316.26
5.4.30.0100.03016.23
5.4.20.0130.05316.31
5.4.10.0000.04016.41
5.4.00.0070.07016.12
5.3.290.0200.06716.12
5.3.280.0200.05316.12
5.3.270.0100.07716.12
5.3.260.0130.07016.12
5.3.250.0130.03016.12
5.3.240.0130.05316.12
5.3.230.0100.07316.12
5.3.220.0070.05316.12
5.3.210.0070.07316.12
5.3.200.0130.05716.12
5.3.190.0200.06016.12
5.3.180.0100.07316.12
5.3.170.0130.06016.12
5.3.160.0070.06016.12
5.3.150.0070.07716.12
5.3.140.0070.07016.12
5.3.130.0070.04016.12
5.3.120.0030.06016.12
5.3.110.0000.04316.12
5.3.100.0030.05716.12
5.3.90.0000.06016.12
5.3.80.0030.07316.12
5.3.70.0000.08716.12
5.3.60.0100.07316.12
5.3.50.0100.05016.12
5.3.40.0100.04016.12
5.3.30.0100.06016.12
5.3.20.0030.05316.12
5.3.10.0100.06716.12
5.3.00.0100.04316.12
5.2.170.0030.05316.12
5.2.160.0000.03016.12
5.2.150.0100.04316.12
5.2.140.0100.06016.12
5.2.130.0070.05716.12
5.2.120.0030.04316.12
5.2.110.0000.04316.12
5.2.100.0030.06716.12
5.2.90.0070.05716.12
5.2.80.0030.05316.12
5.2.70.0030.06016.12
5.2.60.0100.06016.12
5.2.50.0100.05316.12
5.2.40.0130.04716.12
5.2.30.0030.04016.12
5.2.20.0000.03316.12
5.2.10.0070.06016.12
5.2.00.0000.06016.12
5.1.60.0030.05016.12
5.1.50.0100.02316.12
5.1.40.0070.04016.12
5.1.30.0100.04716.12
5.1.20.0130.04316.12
5.1.10.0100.05316.12
5.1.00.0030.05016.12
5.0.50.0030.04316.12
5.0.40.0000.02316.12
5.0.30.0000.05316.12
5.0.20.0030.03016.12
5.0.10.0030.01716.12
5.0.00.0030.03016.12
4.4.90.0000.03016.12
4.4.80.0070.03016.12
4.4.70.0030.02316.12
4.4.60.0000.01716.12
4.4.50.0030.02016.12
4.4.40.0070.04716.12
4.4.30.0030.03716.12
4.4.20.0030.03716.12
4.4.10.0070.03016.12
4.4.00.0030.05316.12
4.3.110.0030.03716.12
4.3.100.0070.03016.12
4.3.90.0000.01716.12
4.3.80.0030.02316.12
4.3.70.0030.03316.12
4.3.60.0100.02016.12
4.3.50.0030.03716.12
4.3.40.0000.04316.12
4.3.30.0000.01716.12
4.3.20.0000.03716.12
4.3.10.0030.03016.12
4.3.00.0030.03316.12

preferences:
63.44 ms | 401 KiB | 5 Q