3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str[] = "3543900000133243"; $str[] = "01C8000100023543sssssxxxxxx23243"; $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.0050.01018.81
8.3.50.0100.00622.08
8.3.40.0080.00819.00
8.3.30.0090.00619.07
8.3.20.0080.00020.16
8.3.10.0080.00023.57
8.3.00.0040.00422.45
8.2.180.0110.00716.63
8.2.170.0120.00322.96
8.2.160.0070.00721.14
8.2.150.0060.00324.18
8.2.140.0030.00624.66
8.2.130.0000.00826.16
8.2.120.0090.00019.70
8.2.110.0030.00622.39
8.2.100.0100.00318.16
8.2.90.0000.00817.88
8.2.80.0030.00618.99
8.2.70.0080.00017.75
8.2.60.0030.00517.75
8.2.50.0000.00817.63
8.2.40.0050.00320.42
8.2.30.0040.00418.04
8.2.20.0060.00317.82
8.2.10.0000.00717.91
8.2.00.0040.00417.89
8.1.280.0100.00725.92
8.1.270.0030.00523.89
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0080.00020.35
8.1.230.0070.00417.83
8.1.220.0040.00417.89
8.1.210.0080.00018.77
8.1.200.0080.00017.48
8.1.190.0000.00817.36
8.1.180.0080.00018.10
8.1.170.0050.00318.60
8.1.160.0000.00718.91
8.1.150.0030.00618.80
8.1.140.0000.00817.61
8.1.130.0030.00317.76
8.1.120.0000.00717.52
8.1.110.0020.00517.60
8.1.100.0040.00417.60
8.1.90.0070.00017.55
8.1.80.0040.00417.63
8.1.70.0020.00517.55
8.1.60.0030.00517.73
8.1.50.0000.00817.67
8.1.40.0000.00717.56
8.1.30.0050.00317.82
8.1.20.0030.00617.82
8.1.10.0000.00817.73
8.1.00.0000.00817.71
8.0.300.0080.00018.78
8.0.290.0040.00416.75
8.0.280.0000.00718.48
8.0.270.0000.00817.34
8.0.260.0030.00316.96
8.0.250.0070.00017.14
8.0.240.0000.00717.02
8.0.230.0080.00017.09
8.0.220.0050.00317.03
8.0.210.0030.00316.95
8.0.200.0030.00317.00
8.0.190.0040.00416.98
8.0.180.0040.00416.95
8.0.170.0040.00416.98
8.0.160.0040.00417.02
8.0.150.0030.00516.90
8.0.140.0040.00417.04
8.0.130.0100.00013.54
8.0.120.0060.00316.99
8.0.110.0040.00416.95
8.0.100.0040.00416.95
8.0.90.0070.00016.90
8.0.80.0090.00617.10
8.0.70.0030.00517.02
8.0.60.0000.00717.12
8.0.50.0040.00417.04
8.0.30.0100.00917.17
8.0.20.0080.01017.47
8.0.10.0080.00017.20
8.0.00.0160.00216.82
7.4.330.0000.00515.10
7.4.320.0000.00716.74
7.4.300.0000.00616.72
7.4.290.0030.00616.81
7.4.280.0030.00316.74
7.4.270.0000.00616.59
7.4.260.0000.00716.71
7.4.250.0000.00716.79
7.4.240.0000.00816.78
7.4.230.0040.00416.71
7.4.220.0060.00916.79
7.4.210.0060.01116.81
7.4.200.0030.00316.72
7.4.190.0040.00416.68
7.4.160.0180.00416.86
7.4.150.0070.01117.40
7.4.140.0090.00917.86
7.4.130.0060.01116.70
7.4.120.0100.00716.65
7.4.110.0150.00816.86
7.4.100.0090.00916.74
7.4.90.0120.00616.81
7.4.80.0040.01216.85
7.4.70.0130.00316.63
7.4.60.0060.01116.69
7.4.50.0030.00616.60
7.4.40.0080.00322.77
7.4.30.0120.00616.74
7.4.00.0090.00715.34
7.3.330.0030.00313.40
7.3.320.0020.00213.22
7.3.310.0040.00216.57
7.3.300.0030.00316.38
7.3.290.0000.01916.50
7.3.280.0090.00716.50
7.3.270.0150.00317.40
7.3.260.0090.00916.68
7.3.250.0070.01016.67
7.3.240.0100.00616.67
7.3.230.0000.01616.67
7.3.210.0120.00616.85
7.3.200.0030.01319.39
7.3.190.0090.01316.75
7.3.180.0130.00316.55
7.3.170.0160.00316.48
7.3.160.0100.00616.91
7.3.120.0110.00115.06
7.3.110.0110.00715.00
7.3.100.0100.01015.13
7.3.90.0060.00615.11
7.3.80.0030.01014.74
7.3.70.0090.00815.22
7.3.60.0060.01315.05
7.3.50.0070.00715.13
7.3.40.0030.01215.10
7.3.30.0030.00914.95
7.3.20.0090.00317.00
7.3.10.0030.00816.76
7.3.00.0060.00616.92
7.2.330.0100.00716.66
7.2.320.0100.00616.79
7.2.310.0100.01016.80
7.2.300.0130.00416.82
7.2.290.0060.01116.75
7.2.250.0070.01315.26
7.2.240.0100.01015.25
7.2.230.0130.00615.14
7.2.220.0000.01515.15
7.2.210.0060.00315.21
7.2.200.0070.01015.35
7.2.190.0090.01215.17
7.2.180.0000.01315.27
7.2.170.0090.00915.33
7.2.130.0000.00916.89
7.2.120.0050.00517.20
7.2.110.0030.00716.85
7.2.100.0120.00316.86
7.2.90.0070.00317.14
7.2.80.0000.01417.12
7.2.70.0000.01117.06
7.2.60.0040.00916.94
7.2.50.0030.01017.29
7.2.40.0030.01017.14
7.2.30.0030.00717.29
7.2.20.0070.00716.82
7.2.10.0090.00617.03
7.2.00.0020.00718.37
7.1.330.0060.00915.89
7.1.320.0000.01615.84
7.1.310.0060.00915.87
7.1.300.0070.01015.96
7.1.290.0030.01015.95
7.1.280.0120.00415.83
7.1.270.0090.00615.86
7.1.260.0100.00316.01
7.1.250.0070.00715.95
7.1.200.0060.00616.10
7.1.100.0040.00718.39
7.1.70.0040.00417.53
7.1.60.0000.01419.32
7.1.50.0040.01417.10
7.1.00.0070.07322.34
7.0.200.0000.01417.00
7.0.140.0030.07322.08
7.0.60.0030.04019.82
7.0.50.0130.07717.79
7.0.40.0000.05020.05
7.0.30.0300.06020.19
7.0.20.0270.07720.14
7.0.10.0070.06020.30
7.0.00.0030.04720.19
5.6.280.0070.06721.12
5.6.210.0030.08720.50
5.6.200.0130.08018.17
5.6.190.0100.08020.43
5.6.180.0430.04320.47
5.6.170.0200.04320.54
5.6.160.0000.05020.33
5.6.150.0000.04318.15
5.6.140.0070.04318.16
5.6.130.0070.06318.10
5.6.120.0070.07720.90
5.6.110.0100.07320.93
5.6.100.0230.07021.11
5.6.90.0170.07320.98
5.6.80.0030.08320.38
5.5.350.0000.05020.41
5.5.340.0100.05017.98
5.5.330.0030.08720.13
5.5.320.0000.04720.51
5.5.310.0230.06020.23
5.5.300.0070.03317.91
5.5.290.0070.06017.98
5.5.280.0030.08020.98
5.5.270.0070.03720.67
5.5.260.0000.04720.89
5.5.250.0070.06720.54
5.5.240.0100.05320.16
5.4.450.3730.05319.42
5.4.440.3430.03319.44
5.4.430.3670.04019.56
5.4.420.3670.04319.13
5.4.410.4030.04019.14
5.4.400.3270.03319.23
5.4.390.2870.03019.22
5.4.380.2100.03319.13
5.4.370.3270.04019.09
5.4.360.2370.04019.08
5.4.350.3570.03018.88
5.4.340.3470.04319.25
5.4.320.3470.03318.85
5.4.310.3400.04019.13
5.4.300.3270.03319.08
5.4.290.3500.03719.09
5.4.280.0230.05319.08
5.4.270.0030.04019.19
5.4.260.3530.03319.13
5.4.250.3670.03718.81
5.4.240.4230.04019.12
5.4.230.4170.04318.80
5.4.220.3600.03719.08
5.4.210.3330.03318.78
5.4.200.4130.04019.08
5.4.190.4300.03019.08
5.4.180.4200.03319.05
5.4.170.3570.04319.08
5.4.160.3500.03319.22
5.4.150.4200.04019.19
5.4.140.2770.03716.29
5.4.130.4170.03016.38
5.4.120.3370.03716.34
5.4.110.3500.03016.50
5.4.100.3400.03716.46
5.4.90.3170.04316.34
5.4.80.3600.03316.19
5.4.70.3930.03316.18
5.4.60.3570.04016.32
5.4.50.3670.03016.37
5.4.40.3230.04016.45
5.4.30.3830.04316.18
5.4.20.2830.03016.20
5.4.10.4000.03716.36
5.4.00.3970.02315.90
5.3.290.3270.03714.61
5.3.280.4300.03314.45
5.3.270.3970.03714.45
5.3.260.3570.04314.48
5.3.250.3630.03314.46
5.3.240.3700.03714.59
5.3.230.3370.04014.64
5.3.220.4130.04314.67
5.3.210.3670.03014.51
5.3.200.3730.03314.43
5.3.190.3700.04314.47
5.3.180.3500.03714.47
5.3.170.3630.03014.51
5.3.160.3430.04014.52
5.3.150.4200.03314.41
5.3.140.4070.03714.51
5.3.130.3500.03314.50
5.3.120.3430.03314.49
5.3.110.3570.04014.34
5.3.100.5200.04013.89
5.3.90.3730.04014.05
5.3.80.4370.02713.86
5.3.70.3500.03314.13
5.3.60.3530.03713.96
5.3.50.3530.03313.97
5.3.40.3700.02713.85
5.3.30.3570.03313.89
5.3.20.3470.02313.64
5.3.10.3530.04013.61
5.3.00.3770.03013.59
5.2.170.2930.02711.05
5.2.160.3130.03011.20
5.2.150.2830.03011.15
5.2.140.2800.02711.23
5.2.130.2800.02710.95
5.2.120.2900.03310.96
5.2.110.2930.02710.93
5.2.100.3030.02711.11
5.2.90.3030.03311.20
5.2.80.2870.02711.03
5.2.70.3000.02710.90
5.2.60.3470.03310.89
5.2.50.2870.03011.06
5.2.40.2230.03011.09
5.2.30.2200.02010.82
5.2.20.2570.03710.82
5.2.10.2700.03010.81
5.2.00.2930.03310.79
5.1.60.2630.0279.97
5.1.50.2670.0279.87
5.1.40.3000.02710.09
5.1.30.3070.02310.27
5.1.20.2470.02710.27
5.1.10.3300.0339.96
5.1.00.2630.0309.96
5.0.50.1130.0208.48
5.0.40.1230.0238.50
5.0.30.1000.0338.38
5.0.20.1170.0178.09
5.0.10.1130.0208.07
5.0.00.1300.0378.14
4.4.90.1300.0207.34
4.4.80.1270.0137.34
4.4.70.1730.0177.36
4.4.60.1330.0177.36
4.4.50.1600.0177.36
4.4.40.1300.0277.39
4.4.30.1000.0237.40
4.4.20.1930.0107.42
4.4.10.1430.0177.43
4.4.00.1130.0237.44
4.3.110.1330.0177.45
4.3.100.1300.0207.46
4.3.90.1170.0137.46
4.3.80.1170.0237.47
4.3.70.1370.0177.47
4.3.60.1170.0207.49
4.3.50.1170.0137.50
4.3.40.1130.0237.51
4.3.30.0570.0177.51
4.3.20.0730.0137.51
4.3.10.0600.0177.51
4.3.00.0570.0137.51

preferences:
43.36 ms | 401 KiB | 5 Q