3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str[] = "01C8000100023543900000133243"; $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.0120.00616.50
8.3.50.0080.00722.19
8.3.40.0090.00619.04
8.3.30.0000.01519.14
8.3.20.0000.00720.15
8.3.10.0030.00623.51
8.3.00.0040.00420.89
8.2.180.0040.01118.41
8.2.170.0090.00922.96
8.2.160.0070.00720.21
8.2.150.0000.00924.18
8.2.140.0080.00024.66
8.2.130.0090.00926.16
8.2.120.0040.00422.31
8.2.110.0070.00322.25
8.2.100.0060.00617.91
8.2.90.0000.00817.97
8.2.80.0000.00719.23
8.2.70.0050.00317.75
8.2.60.0040.00417.91
8.2.50.0040.00418.07
8.2.40.0000.00718.28
8.2.30.0040.00618.15
8.2.20.0030.00617.89
8.2.10.0080.00017.89
8.2.00.0000.00917.95
8.1.280.0030.01525.92
8.1.270.0040.00423.79
8.1.260.0060.00326.35
8.1.250.0040.00428.09
8.1.240.0060.00322.14
8.1.230.0120.00020.89
8.1.220.0050.00317.74
8.1.210.0050.00318.95
8.1.200.0060.00317.47
8.1.190.0000.00817.53
8.1.180.0000.00918.10
8.1.170.0090.00018.63
8.1.160.0050.00321.95
8.1.150.0040.00418.77
8.1.140.0050.00217.62
8.1.130.0000.00817.48
8.1.120.0040.00417.61
8.1.110.0040.00417.59
8.1.100.0040.00417.62
8.1.90.0050.00517.56
8.1.80.0040.00417.47
8.1.70.0040.00417.56
8.1.60.0060.00317.73
8.1.50.0050.00317.57
8.1.40.0000.00817.69
8.1.30.0000.00917.75
8.1.20.0050.00317.84
8.1.10.0060.00317.69
8.1.00.0040.00417.49
8.0.300.0070.00019.98
8.0.290.0080.00016.88
8.0.280.0040.00218.40
8.0.270.0040.00417.28
8.0.260.0040.00416.97
8.0.250.0000.00717.14
8.0.240.0040.00417.00
8.0.230.0000.00717.09
8.0.220.0040.00416.95
8.0.210.0000.00816.92
8.0.200.0050.00317.14
8.0.190.0000.00716.98
8.0.180.0040.00417.08
8.0.170.0080.00016.95
8.0.160.0020.00517.05
8.0.150.0000.00917.02
8.0.140.0080.00316.92
8.0.130.0070.00013.43
8.0.120.0080.00016.90
8.0.110.0000.00716.97
8.0.100.0000.00717.11
8.0.90.0000.00716.91
8.0.80.0100.00417.07
8.0.70.0040.00417.16
8.0.60.0050.00317.06
8.0.50.0030.00517.07
8.0.30.0090.01217.44
8.0.20.0140.00517.40
8.0.10.0040.00417.17
8.0.00.0060.01316.71
7.4.330.0000.00515.00
7.4.320.0040.00416.74
7.4.300.0030.00316.82
7.4.290.0000.00716.80
7.4.280.0030.00316.80
7.4.270.0030.00316.72
7.4.260.0030.00516.76
7.4.250.0040.00416.70
7.4.240.0020.00516.81
7.4.230.0030.00316.77
7.4.220.0100.01316.78
7.4.210.0100.00516.80
7.4.200.0040.00416.84
7.4.190.0030.00516.53
7.4.160.0110.00616.79
7.4.150.0040.01517.40
7.4.140.0080.00917.86
7.4.130.0090.00816.74
7.4.120.0120.00616.72
7.4.110.0030.01316.82
7.4.100.0070.01016.66
7.4.90.0120.00416.62
7.4.80.0140.00519.39
7.4.70.0120.00316.89
7.4.60.0090.00816.72
7.4.50.0030.00616.84
7.4.40.0070.01122.77
7.4.30.0100.00616.77
7.4.00.0100.00715.18
7.3.330.0000.00613.36
7.3.320.0000.00613.32
7.3.310.0070.00016.47
7.3.300.0070.00016.47
7.3.290.0090.00616.53
7.3.280.0070.01016.46
7.3.270.0100.00717.40
7.3.260.0060.01616.79
7.3.250.0090.00816.45
7.3.240.0040.01416.74
7.3.230.0100.00716.67
7.3.210.0030.01516.65
7.3.200.0040.01919.39
7.3.190.0120.00916.26
7.3.180.0060.01316.74
7.3.170.0120.00316.67
7.3.160.0100.01016.79
7.3.120.0070.01015.00
7.3.10.0100.00616.77
7.3.00.0030.00916.88
7.2.330.0120.00616.91
7.2.320.0070.01016.83
7.2.310.0140.00416.82
7.2.300.0090.00616.81
7.2.290.0130.00316.82
7.2.130.0120.00317.00
7.2.120.0080.00716.95
7.2.110.0060.00716.96
7.2.100.0060.00617.09
7.2.90.0090.00417.15
7.2.80.0080.00816.95
7.2.70.0070.00817.11
7.2.60.0070.00816.97
7.2.50.0040.01016.95
7.2.40.0080.00817.21
7.2.30.0050.01116.82
7.2.20.0110.00616.95
7.2.10.0070.00816.88
7.2.00.0020.01117.84
7.1.250.0050.00715.89
7.1.240.0100.00715.81
7.1.230.0070.00715.52
7.1.220.0080.00815.57
7.1.210.0110.00315.85
7.1.200.0060.00615.96
7.1.190.0100.00715.45
7.1.180.0130.00315.86
7.1.170.0040.01115.82
7.1.160.0100.00315.71
7.1.150.0090.00616.04
7.1.140.0070.00716.07
7.1.130.0070.01015.79
7.1.120.0060.00916.01
7.1.110.0110.00715.88
7.1.100.0060.00617.17
7.1.90.0110.00715.75
7.1.80.0100.00715.95
7.1.70.0080.00716.57
7.1.60.0100.01117.54
7.1.50.0150.01725.43
7.1.40.0140.01016.05
7.1.30.0200.00315.89
7.1.20.0150.01015.70
7.1.10.0100.01016.02
7.1.00.0110.04119.05
7.0.330.0090.00615.27
7.0.320.0070.00615.40
7.0.310.0130.00015.47
7.0.300.0080.00515.51
7.0.290.0030.00915.40
7.0.280.0100.00315.44
7.0.270.0090.00315.10
7.0.260.0120.00515.50
7.0.250.0070.00715.30
7.0.240.0100.00615.30
7.0.230.0090.00615.55
7.0.220.0070.01015.61
7.0.210.0090.00915.49
7.0.200.0050.01216.06
7.0.190.0140.00615.77
7.0.180.0130.01015.50
7.0.170.0170.00615.71
7.0.160.0140.00715.53
7.0.150.0110.00815.63
7.0.140.0130.03818.75
7.0.130.0140.00615.14
7.0.120.0080.01415.71
7.0.110.0120.01215.51
7.0.100.0130.00715.37
7.0.90.0180.00315.65
7.0.80.0130.03217.68
7.0.70.0240.03917.73
7.0.60.0250.04017.71
7.0.50.0390.04017.77
7.0.40.0090.02916.82
7.0.30.0090.03916.75
7.0.20.0070.04716.72
7.0.10.0120.03416.69
7.0.00.0080.03516.77
5.6.380.0000.01114.26
5.6.370.0140.00314.23
5.6.360.0000.01214.43
5.6.350.0060.00614.84
5.6.340.0000.01014.56
5.6.330.0000.01314.63
5.6.320.0000.01614.60
5.6.310.0100.01014.33
5.6.300.0080.01114.36
5.6.290.0130.00714.05
5.6.280.0060.04317.70
5.6.270.0150.00414.35
5.6.260.0080.00814.43
5.6.250.0100.00714.42
5.6.240.0130.00814.14
5.6.230.0070.02817.43
5.6.220.0060.02517.45
5.6.210.0120.04517.53
5.6.200.0080.04417.63
5.6.190.0050.04717.75
5.6.180.0130.03917.58
5.6.170.0130.04317.50
5.6.160.0080.03317.67
5.6.150.0060.03917.83
5.6.140.0080.04517.84
5.6.130.0050.04317.63
5.6.120.0100.02817.53
5.6.110.0120.04017.69
5.6.100.0080.04317.63
5.6.90.0000.05017.68
5.6.80.0110.02217.37
5.6.70.0100.04017.49
5.6.60.0080.02717.50
5.6.50.0050.03417.48
5.6.40.0070.03017.52
5.6.30.0100.02717.34
5.6.20.0080.02517.36
5.6.10.0130.02017.42
5.6.00.0110.01817.38
5.5.380.0100.00010.90
5.5.370.0100.03815.72
5.5.360.0060.02415.73
5.5.350.0040.02715.73
5.5.340.0140.03116.06
5.5.330.0110.02615.88
5.5.320.0080.02415.95
5.5.310.0070.03315.88
5.5.300.0080.04515.94
5.5.290.0050.04815.79
5.5.280.0020.02715.79
5.5.270.0120.04315.99
5.5.260.0130.02515.82
5.5.250.0100.04315.82
5.5.240.0020.04615.57
5.5.230.0120.03315.43
5.5.220.0110.03315.71
5.5.210.0090.02715.55
5.5.200.0060.02415.61
5.5.190.0030.02615.50
5.5.180.0070.02215.56
5.5.170.0000.01310.71
5.5.160.0030.02415.63
5.5.150.0090.01515.55
5.5.140.0070.01815.68
5.5.130.0050.03615.63
5.5.120.0030.03615.44
5.5.110.0040.02115.57
5.5.100.0050.02015.60
5.5.90.0050.03015.57
5.5.80.0080.01715.55
5.5.70.0060.03615.41
5.5.60.0040.02215.41
5.5.50.0050.02115.42
5.5.40.0020.02515.44
5.5.30.0080.02015.55
5.5.20.0060.01815.60
5.5.10.0040.03015.46
5.5.00.0020.02215.48
5.4.450.0090.04115.26
5.4.440.0110.02314.97
5.4.430.0090.04215.19
5.4.420.0050.04315.10
5.4.410.0120.04015.21
5.4.400.0080.02715.05
5.4.390.0060.03015.02
5.4.380.0130.02015.06
5.4.370.0030.02614.92
5.4.360.0030.02814.90
5.4.350.0030.02514.90
5.4.340.0030.02314.98
5.4.330.0000.01110.82
5.4.320.0040.02215.10
5.4.310.0040.02314.97
5.4.300.0050.04214.90
5.4.290.0050.02414.97
5.4.280.0030.04114.88
5.4.270.0070.02515.03
5.4.260.0030.02314.88
5.4.250.0030.04314.97
5.4.240.0030.02814.89
5.4.230.0020.02315.22
5.4.220.0050.02014.96
5.4.210.0070.01615.08
5.4.200.0020.02414.96
5.4.190.0000.02815.05
5.4.180.0060.02915.01
5.4.170.0040.02114.98
5.4.160.0030.02315.09
5.4.150.0050.02314.95
5.4.140.0050.02113.53
5.4.130.0070.01913.62
5.4.120.0080.02013.66
5.4.110.0030.03813.74
5.4.100.0020.02313.69
5.4.90.0040.01813.76
5.4.80.0030.02913.89
5.4.70.0050.02513.71
5.4.60.0030.02513.66
5.4.50.0020.02213.72
5.4.40.0070.02013.71
5.4.30.0050.02013.74
5.4.20.0040.04013.72
5.4.10.0010.03913.70
5.4.00.0050.04213.34
5.3.290.0020.02512.66
5.3.280.0030.02312.64
5.3.270.0050.02212.58
5.3.260.0090.03312.58
5.3.250.0030.02112.57
5.3.240.0060.02012.65
5.3.230.0050.01812.61
5.3.220.0050.02212.64
5.3.210.0060.02212.64
5.3.200.0050.02312.62
5.3.190.0060.02012.59
5.3.180.0020.03112.59
5.3.170.0040.01912.63
5.3.160.0070.01712.56
5.3.150.0050.02212.54
5.3.140.0050.02112.62
5.3.130.0070.03012.58
5.3.120.0030.02212.54
5.3.110.0020.04412.62
5.3.100.0140.03212.35
5.3.90.0090.03712.36
5.3.80.0060.03812.35
5.3.70.0070.03512.35
5.3.60.0080.02412.36
5.3.50.0070.03712.32
5.3.40.0050.03012.30
5.3.30.0090.03612.23
5.3.20.0030.04512.08
5.3.10.0050.03212.07
5.3.00.0110.03712.15
5.2.170.0030.02611.18
5.2.160.0050.03511.18
5.2.150.0040.03211.18
5.2.140.0080.03311.18
5.2.130.0050.03411.18
5.2.120.0100.02811.18
5.2.110.0070.02111.18
5.2.100.0060.02811.18
5.2.90.0030.02111.18
5.2.80.0080.02311.18
5.2.70.0050.03211.18
5.2.60.0030.03411.18
5.2.50.0000.03611.18
5.2.40.0070.03311.18
5.2.30.0090.03711.18
5.2.20.0020.03011.18
5.2.10.0080.02911.18
5.2.00.0030.03011.18
5.1.60.0000.02411.18
5.1.50.0040.01511.18
5.1.40.0040.01511.18
5.1.30.0000.01811.18
5.1.20.0040.02611.18
5.1.10.0040.01411.18
5.1.00.0040.01411.18
5.0.50.0030.01311.18
5.0.40.0020.01811.18
5.0.30.0000.02511.18
5.0.20.0030.01711.18
5.0.10.0030.01911.18
5.0.00.0020.03411.18
4.4.90.0030.02111.18
4.4.80.0040.01811.18
4.4.70.0020.01611.18
4.4.60.0060.01611.18
4.4.50.0030.02011.18
4.4.40.0020.01511.18
4.4.30.0000.02311.18
4.4.20.0020.01011.18
4.4.10.0010.01311.18
4.4.00.0020.02211.18
4.3.110.0020.01411.18
4.3.100.0020.01211.18
4.3.90.0000.01711.18
4.3.80.0040.01711.18
4.3.70.0020.01211.18
4.3.60.0020.01811.18
4.3.50.0030.01611.18
4.3.40.0030.01511.18
4.3.30.0020.01211.18
4.3.20.0020.01711.18
4.3.10.0030.01911.18
4.3.00.0050.01211.18

preferences:
48.06 ms | 401 KiB | 5 Q