3v4l.org

run code in 300+ PHP versions simultaneously
<?php $mystring = 'blabla_blabla_'; $findme = '_'; $pos = strpos($mystring, $findme); echo substr($pos, 0, strpos($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.0040.01118.18
8.3.50.0100.00721.89
8.3.40.0110.00318.54
8.3.30.0070.00718.91
8.3.20.0000.00720.16
8.3.10.0000.00722.18
8.3.00.0050.00322.39
8.2.180.0100.00316.38
8.2.170.0100.00722.96
8.2.160.0070.00720.94
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0000.00726.16
8.2.120.0040.00419.36
8.2.110.0060.00319.38
8.2.100.0090.00317.71
8.2.90.0080.00019.26
8.2.80.0000.00817.97
8.2.70.0030.00617.63
8.2.60.0000.00718.04
8.2.50.0050.00318.10
8.2.40.0080.00020.54
8.2.30.0050.00218.04
8.2.20.0040.00417.54
8.2.10.0080.00017.68
8.2.00.0080.00017.68
8.1.280.0090.00625.92
8.1.270.0060.00322.23
8.1.260.0070.00026.35
8.1.250.0080.00028.09
8.1.240.0080.00419.52
8.1.230.0040.00719.14
8.1.220.0040.00417.79
8.1.210.0040.00418.77
8.1.200.0030.00617.22
8.1.190.0030.00617.10
8.1.180.0050.00318.10
8.1.170.0000.00918.52
8.1.160.0040.00422.06
8.1.150.0050.00318.57
8.1.140.0040.00417.43
8.1.130.0040.00417.82
8.1.120.0050.00317.36
8.1.110.0000.00717.36
8.1.100.0030.00517.39
8.1.90.0000.00717.43
8.1.80.0000.00717.29
8.1.70.0000.00717.29
8.1.60.0040.00417.55
8.1.50.0040.00417.43
8.1.40.0040.00417.43
8.1.30.0000.00717.47
8.1.20.0000.00917.58
8.1.10.0070.00017.45
8.1.00.0040.00417.35
8.0.300.0030.00518.77
8.0.290.0000.00816.75
8.0.280.0000.00718.43
8.0.270.0030.00317.26
8.0.260.0060.00016.83
8.0.250.0000.00716.94
8.0.240.0050.00316.89
8.0.230.0000.00716.93
8.0.220.0050.00216.74
8.0.210.0070.00016.71
8.0.200.0000.00716.84
8.0.190.0000.00716.80
8.0.180.0070.00016.77
8.0.170.0000.00716.89
8.0.160.0080.00016.84
8.0.150.0000.00816.68
8.0.140.0000.00916.77
8.0.130.0000.00613.34
8.0.120.0020.00516.75
8.0.110.0070.00016.85
8.0.100.0000.00716.90
8.0.90.0040.00416.68
8.0.80.0000.01516.83
8.0.70.0000.00816.69
8.0.60.0000.00816.73
8.0.50.0040.00416.86
8.0.30.0140.00516.91
8.0.20.0090.00917.40
8.0.10.0050.00216.92
8.0.00.0120.00516.74
7.4.330.0050.00015.03
7.4.320.0000.00616.53
7.4.300.0060.00016.45
7.4.290.0000.00716.62
7.4.280.0070.00416.37
7.4.270.0030.00316.43
7.4.260.0000.00716.49
7.4.250.0030.00616.39
7.4.240.0000.00716.48
7.4.230.0000.00716.57
7.4.220.0100.00716.54
7.4.210.0070.00916.48
7.4.200.0070.00016.24
7.4.190.0000.00716.57
7.4.160.0090.00616.63
7.4.150.0030.01317.40
7.4.140.0070.01017.86
7.4.130.0130.00816.42
7.4.120.0060.01516.49
7.4.110.0100.00716.42
7.4.100.0070.01016.55
7.4.90.0040.01416.31
7.4.80.0060.01019.39
7.4.70.0120.00616.39
7.4.60.0110.00516.39
7.4.50.0020.00216.51
7.4.40.0040.01522.77
7.4.30.0160.00616.41
7.4.00.0100.00714.97
7.3.330.0050.00012.87
7.3.320.0000.00513.06
7.3.310.0040.00416.07
7.3.300.0030.00316.14
7.3.290.0090.00416.16
7.3.280.0080.00716.13
7.3.270.0060.01117.40
7.3.260.0060.01416.30
7.3.250.0100.00816.29
7.3.240.0170.00616.23
7.3.230.0060.01116.39
7.3.210.0130.00716.42
7.3.200.0040.01219.39
7.3.190.0070.01016.24
7.3.180.0060.00916.34
7.3.170.0150.00616.27
7.3.160.0050.01116.40
7.3.120.0120.00514.80
7.3.110.0130.00314.55
7.3.100.0040.01214.77
7.3.90.0080.00814.66
7.3.80.0080.00714.82
7.3.70.0090.00414.62
7.3.60.0050.00714.40
7.3.50.0090.00414.58
7.3.40.0070.00814.67
7.3.30.0090.00514.34
7.3.20.0060.00716.51
7.3.10.0060.00916.40
7.3.00.0060.00816.34
7.2.330.0120.00616.32
7.2.320.0100.01416.55
7.2.310.0070.01016.50
7.2.300.0100.00616.48
7.2.290.0100.01016.55
7.2.240.0060.00914.94
7.2.230.0080.00814.79
7.2.220.0070.00614.93
7.2.210.0050.01214.70
7.2.200.0100.00314.76
7.2.190.0080.00814.79
7.2.180.0060.00814.83
7.2.170.0050.00915.09
7.2.160.0050.00714.85
7.2.150.0090.00916.76
7.2.140.0090.00616.94
7.2.130.0070.00716.70
7.2.120.0090.00416.84
7.2.110.0030.01216.84
7.2.100.0090.00516.84
7.2.90.0060.00816.72
7.2.80.0050.01016.74
7.2.70.0110.00516.83
7.2.60.0050.00916.67
7.2.50.0080.00716.86
7.2.40.0030.01016.81
7.2.30.0090.00916.73
7.2.20.0070.00816.81
7.2.10.0030.00716.80
7.2.00.0030.01116.81
7.1.330.0050.01015.58
7.1.320.0000.01715.79
7.1.310.0070.00715.85
7.1.300.0070.00915.55
7.1.290.0090.00515.78
7.1.280.0010.01215.71
7.1.270.0020.01215.52
7.1.260.0110.00515.78
7.1.250.0070.00715.64
7.1.70.0040.00717.21
7.1.60.0110.00017.09
7.1.50.0090.01516.85
7.1.00.0000.08022.32
7.0.200.0000.01016.84
7.0.140.0030.07322.08
7.0.60.0030.08319.85
7.0.50.0070.04017.90
7.0.40.0030.08320.35
7.0.30.0200.04320.12
7.0.20.0300.08020.33
7.0.10.0100.07720.00
7.0.00.0100.07020.04
5.6.280.0070.07021.11
5.6.210.0130.07320.51
5.6.200.0100.08018.12
5.6.190.0000.07320.61
5.6.180.0330.04020.67
5.6.170.0270.07720.38
5.6.160.0070.05020.35
5.6.150.0100.05718.08
5.6.140.0100.08018.09
5.6.130.0130.07318.11
5.6.120.0030.06720.79
5.6.110.0170.07721.01
5.6.100.0100.05721.00
5.6.90.0100.08020.96
5.6.80.0100.05020.50
5.5.350.0170.08720.32
5.5.340.0070.07717.97
5.5.330.0030.07020.19
5.5.320.0330.08720.18
5.5.310.0200.04320.18
5.5.300.0130.07317.92
5.5.290.0070.07017.91
5.5.280.0070.08720.82
5.5.270.0030.04320.66
5.5.260.0100.08020.93
5.5.250.0130.06720.69
5.5.240.0130.07320.18
5.4.450.0330.04719.41
5.4.440.0430.04719.41
5.4.430.0200.05019.10
5.4.420.0430.04019.52
5.4.410.0270.04019.45
5.4.400.0370.03319.10
5.4.390.0500.04319.24
5.4.380.0400.06318.68
5.4.370.0370.04718.61
5.4.360.0200.06318.62
5.4.350.0400.05718.52
5.4.340.0270.05718.46
5.4.320.0050.03712.45
5.4.310.0050.04212.45
5.4.300.0040.03812.45
5.4.290.0040.04012.45
5.4.280.0050.03612.35
5.4.270.0130.06319.03
5.4.260.0130.05018.89
5.4.250.0270.05318.92
5.4.240.0070.05019.00
5.4.230.0030.06018.97
5.4.220.0070.06718.91
5.4.210.0100.05318.89
5.4.200.0070.05318.77
5.4.190.0070.05319.01
5.4.180.0100.04719.00
5.4.170.0030.05718.99
5.4.160.0200.07318.77
5.4.150.0000.07719.15
5.4.140.0100.05016.28
5.4.130.0030.05716.53
5.4.120.0100.06716.45
5.4.110.0130.05316.61
5.4.100.0030.05316.35
5.4.90.0100.06716.56
5.4.80.0170.05716.58
5.4.70.0070.07016.34
5.4.60.0070.05316.59
5.4.50.0070.06016.37
5.4.40.0100.05016.38
5.4.30.0070.04716.57
5.4.20.0100.06316.37
5.4.10.0100.05316.31
5.4.00.0100.04715.82
5.3.290.0060.03812.80
5.3.280.0100.05314.57
5.3.270.0230.04714.75
5.3.260.0100.05314.73
5.3.250.0070.05014.77
5.3.240.0200.04314.41
5.3.230.0100.05314.41
5.3.220.0200.05314.38
5.3.210.0000.06314.73
5.3.200.0030.06014.66
5.3.190.0030.08014.54
5.3.180.0070.06314.54
5.3.170.0130.07014.51
5.3.160.0130.07314.65
5.3.150.0100.05314.64
5.3.140.0130.06714.54
5.3.130.0100.06014.47
5.3.120.0100.06014.60
5.3.110.0170.05314.70
5.3.100.0030.07314.20
5.3.90.0100.05014.05
5.3.80.0000.05714.19
5.3.70.0030.05314.13
5.3.60.0100.06314.07
5.3.50.0130.07014.14
5.3.40.0000.05313.99
5.3.30.0000.05313.97
5.3.20.0100.05713.67
5.3.10.0070.05013.57
5.3.00.0030.08013.62
5.2.170.0070.04711.29
5.2.160.0100.04311.08
5.2.150.0170.04011.33
5.2.140.0100.03710.95
5.2.130.0030.04311.20
5.2.120.0070.05311.21
5.2.110.0030.05711.33
5.2.100.0070.04011.23
5.2.90.0070.04311.03
5.2.80.0100.03711.23
5.2.70.0130.03311.30
5.2.60.0100.04011.20
5.2.50.0030.05311.25
5.2.40.0030.04711.14
5.2.30.0100.03711.12
5.2.20.0070.04311.00
5.2.10.0030.05311.15
5.2.00.0030.05010.89
5.1.60.0070.03710.27
5.1.50.0000.04310.08
5.1.40.0130.03710.18
5.1.30.0100.04310.37
5.1.20.0070.04710.52
5.1.10.0070.04010.29
5.1.00.0070.04710.36
5.0.50.0030.0308.86
5.0.40.0070.0278.72
5.0.30.0000.0438.42
5.0.20.0030.0278.18
5.0.10.0070.0238.45
5.0.00.0070.0408.04
4.4.90.0000.0237.24
4.4.80.0100.0277.24
4.4.70.0070.0237.24
4.4.60.0000.0237.24
4.4.50.0000.0307.24
4.4.40.0000.0507.24
4.4.30.0000.0337.24
4.4.20.0100.0237.24
4.4.10.0000.0337.24
4.4.00.0100.0307.24
4.3.110.0100.0237.24
4.3.100.0100.0237.24
4.3.90.0000.0237.24
4.3.80.0130.0377.24
4.3.70.0000.0237.24
4.3.60.0030.0437.24
4.3.50.0030.0207.24
4.3.40.0000.0407.24
4.3.30.0000.0277.24
4.3.20.0000.0277.24
4.3.10.0030.0277.24
4.3.00.0100.01315.59

preferences:
57.35 ms | 401 KiB | 5 Q