3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str[] = "3543900000133243"; $str[] = "3543sssssxxxxxx23243"; $str[] = "1543344=-23-1--923243"; $pattern = "/\A3543(.+)3243\Z/"; foreach($str as $key=>$string) { if(preg_match($pattern,$string,$res)) { echo "found in $string: ".$res[1]." starts at position ".strpos($string,$res[1])."\r\n"; } else { echo "not found in $string"."\r\n"; } }

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.0100.00718.55
8.3.50.0130.00422.26
8.3.40.0070.00719.14
8.3.30.0110.01119.14
8.3.20.0080.00020.20
8.3.10.0140.00423.65
8.3.00.0040.00420.67
8.2.180.0130.00616.75
8.2.170.0090.00622.96
8.2.160.0030.01522.28
8.2.150.0060.01025.66
8.2.140.0000.00824.66
8.2.130.0090.00026.16
8.2.120.0040.00422.39
8.2.110.0090.00022.15
8.2.100.0100.00317.91
8.2.90.0040.00419.17
8.2.80.0060.00318.05
8.2.70.0040.00717.50
8.2.60.0000.00717.93
8.2.50.0030.00618.07
8.2.40.0030.00618.16
8.2.30.0060.00318.08
8.2.20.0000.00717.80
8.2.10.0030.00517.90
8.2.00.0070.00017.92
8.1.280.0070.01025.92
8.1.270.0080.00023.66
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0030.00623.74
8.1.230.0030.00919.17
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0030.00617.47
8.1.190.0030.00517.40
8.1.180.0000.00818.10
8.1.170.0030.00618.71
8.1.160.0000.01021.97
8.1.150.0000.00718.84
8.1.140.0000.00717.61
8.1.130.0030.00317.91
8.1.120.0000.00717.64
8.1.110.0040.00417.47
8.1.100.0000.00917.59
8.1.90.0000.00717.64
8.1.80.0030.00317.51
8.1.70.0000.00717.61
8.1.60.0000.00917.73
8.1.50.0030.00617.63
8.1.40.0030.00617.68
8.1.30.0030.00517.78
8.1.20.0040.00417.71
8.1.10.0000.00817.75
8.1.00.0080.00017.64
8.0.300.0040.00418.77
8.0.290.0070.00017.18
8.0.280.0000.00718.48
8.0.270.0040.00416.96
8.0.260.0060.00316.96
8.0.250.0030.00317.10
8.0.240.0000.00717.14
8.0.230.0030.00317.12
8.0.220.0040.00417.04
8.0.210.0030.00317.03
8.0.200.0000.00617.17
8.0.190.0030.00517.13
8.0.180.0040.00417.14
8.0.170.0060.00317.03
8.0.160.0050.00317.11
8.0.150.0030.00516.94
8.0.140.0000.00717.09
8.0.130.0030.00313.50
8.0.120.0040.00417.02
8.0.110.0070.00016.93
8.0.100.0000.00816.98
8.0.90.0000.00716.95
8.0.80.0150.00616.93
8.0.70.0000.00717.00
8.0.60.0040.00417.16
8.0.50.0000.00716.86
8.0.30.0070.01517.53
8.0.20.0070.01117.45
8.0.10.0040.00417.12
8.0.00.0100.00916.90
7.4.330.0020.00215.18
7.4.320.0030.00316.63
7.4.300.0000.00616.82
7.4.290.0030.00316.77
7.4.280.0030.00316.80
7.4.270.0070.00016.75
7.4.260.0000.00716.80
7.4.250.0000.00816.68
7.4.240.0070.00016.80
7.4.230.0030.00316.82
7.4.220.0030.01516.88
7.4.210.0120.00316.67
7.4.200.0030.00316.63
7.4.190.0070.00016.79
7.4.160.0070.01016.82
7.4.150.0090.00917.40
7.4.140.0080.01017.86
7.4.130.0090.00916.75
7.4.120.0120.00516.90
7.4.110.0030.01316.61
7.4.100.0110.00516.71
7.4.90.0030.01616.72
7.4.80.0100.00616.75
7.4.70.0110.00816.46
7.4.60.0060.00916.57
7.4.50.0080.00016.47
7.4.40.0030.01322.77
7.4.30.0150.00516.58
7.4.00.0090.00315.37
7.3.330.0050.00013.41
7.3.320.0020.00213.39
7.3.310.0080.00016.42
7.3.300.0030.00316.39
7.3.290.0060.00816.48
7.3.280.0050.01016.46
7.3.270.0040.01317.40
7.3.260.0030.01416.53
7.3.250.0120.00916.50
7.3.240.0170.00016.54
7.3.230.0150.00316.65
7.3.210.0030.01316.50
7.3.200.0090.01219.39
7.3.190.0090.01316.54
7.3.180.0060.01016.77
7.3.170.0140.00316.64
7.3.160.0030.01316.68
7.3.120.0000.01115.23
7.2.330.0130.00616.80
7.2.320.0060.01216.74
7.2.310.0030.01316.96
7.2.300.0100.00716.88
7.2.290.0060.01216.67
7.2.60.0040.00816.88
7.2.00.0040.00419.79
7.1.200.0070.00715.73
7.1.100.0340.00414.09
7.1.70.0000.00717.29
7.1.60.0090.01319.32
7.1.50.0030.01216.89
7.1.00.0070.07022.43
7.0.200.0000.00716.65
7.0.140.0000.07722.18
7.0.110.0030.08021.86
7.0.100.0000.08321.77
7.0.90.0030.08021.89
7.0.80.0030.07721.73
7.0.70.0070.07721.84
7.0.60.0100.04721.45
7.0.50.0000.04321.75
7.0.40.0070.07319.74
7.0.30.0030.06319.71
7.0.20.0070.03319.72
7.0.10.0130.03019.87
7.0.00.0070.03319.84
5.6.280.0000.07321.02
5.6.260.0030.07720.59
5.6.250.0130.06020.74
5.6.240.0030.08320.55
5.6.230.0070.07320.69
5.6.220.0070.07320.64
5.6.210.0030.08320.58
5.6.200.0000.04320.66
5.6.190.0070.03720.69
5.6.180.0070.03720.85
5.6.170.0070.03720.68
5.6.160.0030.04020.61
5.6.150.0070.03720.68
5.6.140.0130.05720.65
5.6.130.0000.05320.68
5.6.120.0030.05020.54
5.6.110.0000.06720.65
5.6.100.0000.07020.53
5.6.90.0030.04020.60
5.6.80.0070.04320.04
5.6.70.0000.04020.05
5.6.60.0000.04019.98
5.6.50.0070.03320.03
5.6.40.0030.03720.00
5.6.30.0030.04019.91
5.6.20.0070.04019.82
5.6.10.0000.05319.99
5.6.00.0000.04019.80
5.5.380.0070.07317.36
5.5.370.0030.06317.40
5.5.360.0030.07717.60
5.5.350.0100.06717.45
5.5.340.0000.04318.03
5.5.330.0030.03717.86
5.5.320.0030.04018.02
5.5.310.0000.04718.00
5.5.300.0000.04317.77
5.5.290.0030.04017.85
5.5.280.0000.06018.12
5.5.270.0000.04717.88
5.5.260.0070.05018.00
5.5.250.0030.04017.90
5.5.240.0030.04017.41
5.5.230.0070.03017.54
5.5.220.0000.04017.30
5.5.210.0000.06317.22
5.5.200.0030.03717.08
5.5.190.0030.03717.12
5.5.180.0000.05017.34
5.5.160.0070.03317.39
5.5.150.0070.03317.18
5.5.140.0000.03717.33
5.5.130.0000.04017.52
5.5.120.0070.03317.11
5.5.110.0070.07017.23
5.5.100.0000.03717.26
5.5.90.0000.06317.11
5.5.80.0000.03317.27
5.5.70.0030.06717.23
5.5.60.0000.07017.13
5.5.50.0030.07317.09
5.5.40.0000.05317.36
5.5.30.0000.03717.26
5.5.20.0000.07717.49
5.5.10.0030.06017.37
5.5.00.0030.07017.08
5.4.450.0000.07019.34
5.4.440.0030.05319.27
5.4.430.0030.08019.28
5.4.420.0000.07719.29
5.4.410.0000.04319.39
5.4.400.0070.04318.90
5.4.390.0070.04318.86
5.4.380.0030.03719.07
5.4.370.0030.03719.12
5.4.360.0000.04019.04
5.4.350.0100.03019.20
5.4.340.0070.03319.11
5.4.320.0030.03719.05
5.4.310.0070.03319.02
5.4.300.0070.03018.98
5.4.290.0000.04019.06
5.4.280.0030.03719.01
5.4.270.0030.03718.98
5.4.260.0000.05019.14
5.4.250.0030.06319.05
5.4.240.0030.06718.94
5.4.230.0000.07319.04
5.4.220.0130.06718.89
5.4.210.0030.06719.07
5.4.200.0070.06719.05
5.4.190.0000.03719.18
5.4.180.0070.07018.97
5.4.170.0000.05019.11
5.4.160.0070.04318.93
5.4.150.0070.07019.18
5.4.140.0000.07016.16
5.4.130.0000.05316.20
5.4.120.0030.08716.50
5.4.110.0030.07016.46
5.4.100.0070.07016.23
5.4.90.0030.06716.23
5.4.80.0030.03316.17
5.4.70.0030.06716.16
5.4.60.0030.07016.33
5.4.50.0030.08016.06
5.4.40.0070.07016.26
5.4.30.0030.06716.20
5.4.20.0030.06316.38
5.4.10.0030.07316.28
5.4.00.0030.07015.88
5.3.290.0030.03714.54
5.3.280.0030.05714.50
5.3.270.0030.07014.49
5.3.260.0030.08014.45
5.3.250.0030.03014.66
5.3.240.0000.07714.55
5.3.230.0030.03314.48
5.3.220.0000.05714.39
5.3.210.0030.07314.56
5.3.200.0000.08014.43
5.3.190.0030.04014.66
5.3.180.0030.06014.44
5.3.170.0030.04314.57
5.3.160.0030.06714.63
5.3.150.0070.07314.63
5.3.140.0000.07314.57
5.3.130.0070.07014.37
5.3.120.0070.08014.39
5.3.110.0030.07714.33
5.3.100.0000.04314.14
5.3.90.0170.03313.91
5.3.80.0070.07014.11
5.3.70.0000.07313.95
5.3.60.0030.04714.06
5.3.50.0070.05713.86
5.3.40.0030.07313.84
5.3.30.0000.07313.79
5.3.20.0070.06313.49
5.3.10.0030.06713.59
5.3.00.0070.04013.58
5.2.170.0030.05711.08
5.2.160.0070.05711.03
5.2.150.0130.04311.04
5.2.140.0070.05711.29
5.2.130.0030.04710.98
5.2.120.0030.06011.04
5.2.110.0030.05311.10
5.2.100.0070.05711.17
5.2.90.0000.04011.02
5.2.80.0030.05711.03
5.2.70.0030.06011.03
5.2.60.0070.05310.99
5.2.50.0030.06011.03
5.2.40.0000.06011.06
5.2.30.0030.04310.91
5.2.20.0030.03711.12
5.2.10.0070.05310.99
5.2.00.0100.03310.77
5.1.60.0030.05310.77
5.1.50.0030.05010.77
5.1.40.0030.04310.77
5.1.30.0000.05710.77
5.1.20.0030.05310.77
5.1.10.0000.03010.77
5.1.00.0070.05310.77
5.0.50.0070.04010.77
5.0.40.0030.04310.77
5.0.30.0100.06010.77
5.0.20.0000.04310.77
5.0.10.0000.04310.77
5.0.00.0000.06310.77
4.4.90.0000.03310.77
4.4.80.0030.03010.77
4.4.70.0030.02010.77
4.4.60.0030.03310.77
4.4.50.0030.02710.77
4.4.40.0000.05310.77
4.4.30.0030.02310.77
4.4.20.0000.03710.77
4.4.10.0070.03010.77
4.4.00.0030.05010.77
4.3.110.0030.03010.77
4.3.100.0070.02710.77
4.3.90.0030.03010.77
4.3.80.0030.05010.77
4.3.70.0030.01710.77
4.3.60.0000.03310.77
4.3.50.0030.03310.77
4.3.40.0070.04310.77
4.3.30.0000.03710.77
4.3.20.0070.03010.77
4.3.10.0000.03710.77
4.3.00.0000.03710.77

preferences:
46.7 ms | 401 KiB | 5 Q