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.60.0030.01016.50
8.3.50.0100.01116.42
8.3.40.0070.00718.71
8.3.30.0110.00418.71
8.3.20.0090.00018.65
8.3.10.0080.00018.64
8.3.00.0050.00319.25
8.2.180.0110.00716.63
8.2.170.0100.00622.96
8.2.160.0070.01418.96
8.2.150.0060.00324.18
8.2.140.0060.00324.66
8.2.130.0080.00026.16
8.2.120.0040.00420.81
8.2.110.0060.00322.20
8.2.100.0080.00417.84
8.2.90.0060.00319.27
8.2.80.0040.00418.04
8.2.70.0050.00317.63
8.2.60.0030.00618.04
8.2.50.0000.00818.10
8.2.40.0000.00720.59
8.2.30.0030.00519.28
8.2.20.0080.00317.67
8.2.10.0050.00217.65
8.2.00.0080.00417.65
8.1.280.0040.01125.92
8.1.270.0130.00323.99
8.1.260.0000.00826.35
8.1.250.0150.00328.09
8.1.240.0030.00623.97
8.1.230.0040.00817.77
8.1.220.0040.00417.74
8.1.210.0000.00918.77
8.1.200.0040.00417.35
8.1.190.0030.00617.22
8.1.180.0030.00518.10
8.1.170.0040.00418.46
8.1.160.0000.00719.05
8.1.150.0000.00718.89
8.1.140.0070.00017.38
8.1.130.0050.00219.18
8.1.120.0000.00717.37
8.1.110.0040.00417.29
8.1.100.0050.00217.38
8.1.90.0080.00017.41
8.1.80.0030.00517.39
8.1.70.0000.00717.35
8.1.60.0040.00417.54
8.1.50.0030.00517.45
8.1.40.0090.00017.43
8.1.30.0060.00317.59
8.1.20.0040.00417.61
8.1.10.0000.00817.53
8.1.00.0040.00417.33
8.0.300.0000.00818.77
8.0.290.0040.00416.63
8.0.280.0000.00718.45
8.0.270.0030.00317.25
8.0.260.0030.00316.86
8.0.250.0040.00416.98
8.0.240.0040.00416.86
8.0.230.0030.00316.83
8.0.220.0050.00316.86
8.0.210.0070.00016.75
8.0.200.0030.00316.97
8.0.190.0000.00716.86
8.0.180.0120.00016.95
8.0.170.0000.00916.76
8.0.160.0040.00316.93
8.0.150.0060.00316.87
8.0.140.0000.00816.77
8.0.130.0050.00013.35
8.0.120.0040.00416.75
8.0.110.0050.00316.86
8.0.100.0050.00216.77
8.0.90.0050.00316.89
8.0.80.0120.00616.87
8.0.70.0040.00416.84
8.0.60.0060.00316.78
8.0.50.0030.00516.89
8.0.30.0150.00616.98
8.0.20.0120.00917.10
8.0.10.0060.00316.86
8.0.00.0060.01116.73
7.4.330.0000.00512.97
7.4.320.0030.00316.43
7.4.300.0000.00616.53
7.4.290.0000.00716.42
7.4.280.0050.00316.52
7.4.270.0070.00016.41
7.4.260.0060.00013.34
7.4.250.0000.00716.48
7.4.240.0030.00316.52
7.4.230.0060.00316.30
7.4.220.0030.01516.65
7.4.210.0140.00016.46
7.4.200.0000.00816.58
7.4.190.0000.00816.73
7.4.160.0040.01216.45
7.4.150.0190.00616.63
7.4.140.0110.00716.42
7.4.130.0100.00616.39
7.4.120.0140.00316.43
7.4.110.0030.02016.43
7.4.100.0160.00016.57
7.4.90.0120.00616.55
7.4.80.0060.01519.39
7.4.70.0080.00816.31
7.4.60.0110.00716.43
7.4.50.0030.00316.40
7.4.40.0070.00716.49
7.4.30.0070.01016.66
7.4.00.0090.00615.18
7.3.330.0040.00312.99
7.3.320.0040.00412.91
7.3.310.0030.00316.13
7.3.300.0040.00416.10
7.3.290.0070.00816.20
7.3.280.0100.01016.13
7.3.270.0070.01016.54
7.3.260.0130.00316.58
7.3.250.0100.01316.25
7.3.240.0060.01216.58
7.3.230.0100.01316.34
7.3.210.0120.00616.29
7.3.200.0100.00616.24
7.3.190.0070.01616.19
7.3.180.0090.00916.37
7.3.170.0090.01216.34
7.3.160.0070.01016.24
7.3.120.0040.00814.96
7.3.00.0040.01116.52
7.2.330.0100.00616.71
7.2.320.0150.00916.46
7.2.310.0120.01316.57
7.2.300.0120.00816.65
7.2.290.0160.00016.53
7.2.130.0000.01416.91
7.2.120.0060.00616.84
7.2.110.0030.00716.93
7.2.100.0070.00316.86
7.2.90.0000.01116.80
7.2.80.0090.00616.55
7.2.70.0170.00016.89
7.2.60.0030.00916.68
7.2.50.0060.00616.78
7.2.40.0000.01116.81
7.2.30.0070.00316.69
7.2.20.0040.01416.92
7.2.10.0060.00916.73
7.2.00.0070.00717.96
7.1.250.0040.01115.77
7.1.240.0060.00315.57
7.1.230.0000.01215.89
7.1.220.0090.00615.34
7.1.210.0040.00815.81
7.1.200.0040.00415.70
7.1.190.0060.00915.66
7.1.180.0070.00715.48
7.1.170.0070.01015.81
7.1.160.0030.01015.48
7.1.150.0070.00715.55
7.1.140.0120.00315.54
7.1.130.0090.00615.66
7.1.120.0080.00815.93
7.1.110.0070.00715.71
7.1.100.0160.00416.40
7.1.90.0030.01215.80
7.1.80.0100.00615.71
7.1.70.0020.00916.27
7.1.60.0100.00717.51
7.1.50.0060.01216.13
7.1.40.0030.01315.70
7.1.30.0070.00715.83
7.1.20.0040.01115.90
7.1.10.0060.00915.68
7.1.00.0050.03219.04
7.0.330.0120.00615.24
7.0.320.0060.00615.32
7.0.310.0040.00715.37
7.0.300.0030.00915.00
7.0.290.0080.00015.41
7.0.280.0140.00315.15
7.0.270.0120.00415.39
7.0.260.0030.01014.97
7.0.250.0050.00515.43
7.0.240.0090.00315.39
7.0.230.0110.00415.26
7.0.220.0080.00415.46
7.0.210.0120.00315.32
7.0.200.0030.00716.17
7.0.190.0120.00315.41
7.0.180.0000.00815.15
7.0.170.0070.00715.53
7.0.160.0060.01115.07
7.0.150.0090.00015.36
7.0.140.0070.03718.73
7.0.130.0030.00815.54
7.0.120.0060.03618.89
7.0.110.0000.00815.29
7.0.100.0110.00415.02
7.0.90.0040.01215.29
7.0.80.0070.00715.36
7.0.70.0060.01015.30
7.0.60.0050.03818.63
7.0.50.0030.03416.69
7.0.40.0050.03916.82
7.0.30.0200.02316.90
7.0.20.0130.03016.73
7.0.10.0060.03616.63
7.0.00.0070.02116.83
5.6.380.0040.01214.48
5.6.370.0090.00014.24
5.6.360.0000.01414.00
5.6.350.0070.00714.36
5.6.340.0090.00613.95
5.6.330.0030.01013.84
5.6.320.0140.00014.18
5.6.310.0070.00714.09
5.6.300.0060.00914.67
5.6.290.0060.00314.48
5.6.280.0050.04017.55
5.6.270.0060.00714.36
5.6.260.0030.01014.48
5.6.250.0140.00014.20
5.6.240.0030.01214.28
5.6.230.0080.00814.30
5.6.220.0000.01114.19
5.6.210.0120.03717.30
5.6.200.0050.03016.09
5.6.190.0080.02317.39
5.6.180.0140.02417.62
5.6.170.0160.03017.26
5.6.160.0130.03717.35
5.6.150.0050.03016.12
5.6.140.0030.03616.20
5.6.130.0030.04216.10
5.6.120.0050.04317.80
5.6.110.0030.04617.68
5.6.100.0080.03617.68
5.6.90.0030.04817.73
5.6.80.0030.04317.25
5.6.70.0030.00714.34
5.6.60.0100.00014.34
5.6.50.0000.01513.89
5.6.40.0030.01014.16
5.6.30.0090.00614.20
5.6.20.0050.00514.15
5.6.10.0030.00914.02
5.6.00.0030.00614.20
5.5.380.0040.00711.18
5.5.370.0060.00011.18
5.5.360.0060.00611.18
5.5.350.0020.03515.75
5.5.340.0040.04414.60
5.5.330.0080.02415.79
5.5.320.0110.02215.76
5.5.310.0140.02315.73
5.5.300.0070.04714.56
5.5.290.0070.04214.54
5.5.280.0030.02216.03
5.5.270.0030.03815.97
5.5.260.0070.03716.06
5.5.250.0050.02215.94
5.5.240.0030.02615.72
5.5.230.0040.00411.18
5.5.220.0060.00611.18
5.5.210.0070.00411.18
5.5.200.0060.00011.18
5.5.190.0000.00711.18
5.5.180.0030.00711.18
5.5.170.0060.00611.18
5.5.160.0090.00311.18
5.5.150.0040.00411.18
5.5.140.0060.00611.18
5.5.130.0030.00611.18
5.5.120.0030.00311.18
5.5.110.0090.00011.18
5.5.100.0050.00311.18
5.5.90.0030.00611.18
5.5.80.0030.00611.18
5.5.70.0030.00311.18
5.5.60.0040.00411.18
5.5.50.0000.00711.18
5.5.40.0060.00611.18
5.5.30.0060.00011.18
5.5.20.0030.00711.18
5.5.10.0060.00611.18
5.5.00.0040.00711.18
5.4.450.0080.04015.34
5.4.440.0050.04515.34
5.4.430.0030.03015.30
5.4.420.0040.02315.25
5.4.410.0050.02915.16
5.4.400.0090.01815.15
5.4.390.0080.02015.13
5.4.380.0030.02315.05
5.4.370.0050.02315.17
5.4.360.0050.02614.99
5.4.350.0060.02115.13
5.4.340.0020.02515.13
5.4.330.0030.00911.18
5.4.320.0030.02314.98
5.4.310.0050.02815.18
5.4.300.0080.04215.16
5.4.290.0050.04115.16
5.4.280.0120.03315.13
5.4.270.0050.03815.05
5.4.260.0080.03615.17
5.4.250.0050.03115.09
5.4.240.0030.02314.98
5.4.230.0070.02415.09
5.4.220.0020.02514.99
5.4.210.0060.03915.04
5.4.200.0060.02215.04
5.4.190.0070.02515.04
5.4.180.0070.03715.18
5.4.170.0070.02015.13
5.4.160.0050.04015.16
5.4.150.0060.04215.16
5.4.140.0120.02313.67
5.4.130.0030.03813.71
5.4.120.0020.02513.77
5.4.110.0020.02213.77
5.4.100.0020.04213.72
5.4.90.0010.03613.74
5.4.80.0080.01813.77
5.4.70.0050.02413.78
5.4.60.0080.03813.76
5.4.50.0070.03213.70
5.4.40.0030.04213.69
5.4.30.0050.04313.69
5.4.20.0050.03913.71
5.4.10.0050.04013.71
5.4.00.0030.02213.41
5.3.290.0040.02212.91
5.3.280.0020.04512.85
5.3.270.0020.04012.90
5.3.260.0050.02512.80
5.3.250.0030.02612.79
5.3.240.0030.04512.78
5.3.230.0020.02512.86
5.3.220.0030.02312.84
5.3.210.0010.02612.85
5.3.200.0060.03312.85
5.3.190.0020.04212.88
5.3.180.0060.02412.86
5.3.170.0050.02812.88
5.3.160.0070.03112.85
5.3.150.0030.04012.88
5.3.140.0070.02912.83
5.3.130.0070.03012.82
5.3.120.0030.04212.83
5.3.110.0020.02512.84
5.3.100.0050.04012.59
5.3.90.0070.04012.59
5.3.80.0040.04212.60
5.3.70.0080.02512.51
5.3.60.0030.03612.55
5.3.50.0080.03512.57
5.3.40.0060.02112.52
5.3.30.0010.03612.44
5.3.20.0070.01812.39
5.3.10.0030.02112.39
5.3.00.0070.03612.37
5.2.170.0040.03211.13
5.2.160.0030.01811.24
5.2.150.0060.02011.13
5.2.140.0050.01711.07
5.2.130.0060.03011.07
5.2.120.0030.03011.08
5.2.110.0030.01811.05
5.2.100.0100.01511.13
5.2.90.0060.01411.21
5.2.80.0080.01511.08
5.2.70.0060.02811.18
5.2.60.0020.03111.05
5.2.50.0050.02111.13
5.2.40.0030.01911.16
5.2.30.0060.03211.07
5.2.20.0030.02711.02
5.2.10.0040.02311.09
5.2.00.0020.01710.93
5.1.60.0060.01110.67
5.1.50.0050.02710.60
5.1.40.0020.01410.61
5.1.30.0020.01910.83
5.1.20.0030.02410.80
5.1.10.0000.03110.61
5.1.00.0000.01710.65
5.0.50.0050.0239.87
5.0.40.0020.0279.82
5.0.30.0010.0259.72
5.0.20.0000.0169.68
5.0.10.0000.0199.67
5.0.00.0020.0239.66
4.4.90.0050.0179.49
4.4.80.0020.0219.49
4.4.70.0000.0129.49
4.4.60.0020.0119.49
4.4.50.0040.0149.49
4.4.40.0040.0159.49
4.4.30.0020.0199.49
4.4.20.0050.0199.49
4.4.10.0030.0189.49
4.4.00.0070.0259.49
4.3.110.0040.0169.49
4.3.100.0030.0179.49
4.3.90.0010.0119.49
4.3.80.0020.0289.49
4.3.70.0030.0179.49
4.3.60.0050.0189.49
4.3.50.0020.0189.49
4.3.40.0000.0209.49
4.3.30.0000.0119.49
4.3.20.0020.0089.49
4.3.10.0010.0119.49
4.3.00.0050.0179.49

preferences:
46.85 ms | 401 KiB | 5 Q