3v4l.org

run code in 300+ PHP versions simultaneously
<?php $body = "<img alt='' src='http://img.dev.teeeest/images/UID' /> <img alt='' src='https://img.deaaav.test.com/images/UID.ux/' /> <img alt='' src='http://api.com/images/UID' /> <img alt='' src='http://img.deaSassav.test/images/UID' /> <img alt='' src='https://img.dev.test/images/UID' />"; $body = stripslashes($body); $img_array = array(); preg_match_all("/<img.*?src='(?!http[s]*:\/\/img.[a-zA-Z0-9]*.test\/)(.*?)/imU", $body, $img_array); echo "<pre>"; print_r($img_array[0]); echo "</pre>";

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.4.140.0080.01517.71
8.4.130.0150.00519.75
8.4.120.0130.00720.64
8.4.110.0060.00422.43
8.4.100.0150.00718.11
8.4.90.0120.00918.50
8.4.80.0150.00519.81
8.4.70.0130.00718.03
8.4.60.0130.00718.93
8.4.50.0110.01017.71
8.4.40.0070.01120.77
8.4.30.0070.01418.73
8.4.20.0130.00718.86
8.4.10.0160.00318.09
8.3.270.0110.00916.86
8.3.260.0050.00716.70
8.3.250.0050.00318.54
8.3.240.0110.00916.65
8.3.230.0060.00616.48
8.3.220.0110.00817.26
8.3.210.0090.00416.52
8.3.200.0080.00316.61
8.3.190.0090.00718.91
8.3.180.0100.00918.30
8.3.170.0090.01017.00
8.3.160.0120.00616.52
8.3.150.0130.00620.68
8.3.140.0070.00716.78
8.3.130.0030.00618.30
8.3.120.0060.00320.61
8.3.110.0090.00020.94
8.3.100.0040.00724.06
8.3.90.0080.00016.61
8.3.80.0050.00516.63
8.3.70.0070.00716.63
8.3.60.0120.00318.55
8.3.50.0140.00317.38
8.3.40.0160.00018.96
8.3.30.0040.01218.99
8.3.20.0000.00822.39
8.3.10.0030.00620.03
8.3.00.0080.00023.53
8.2.290.0080.00720.43
8.2.280.0040.00422.31
8.2.270.0070.01016.94
8.2.260.0000.00720.70
8.2.250.0060.00318.83
8.2.240.0060.00317.13
8.2.230.0060.00322.58
8.2.220.0060.00337.54
8.2.210.0040.01126.77
8.2.200.0100.00016.63
8.2.190.0090.00616.63
8.2.180.0160.00318.54
8.2.170.0110.00422.96
8.2.160.0120.00320.38
8.2.150.0090.00024.18
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0080.00026.16
8.2.110.0070.00321.11
8.2.100.0040.00717.84
8.2.90.0060.00318.16
8.2.80.0060.00618.88
8.2.70.0050.00317.88
8.2.60.0000.00817.90
8.2.50.0030.00518.07
8.2.40.0040.00418.34
8.2.30.0050.00318.21
8.2.20.0000.00718.15
8.2.10.0070.00019.22
8.2.00.0040.00419.16
8.1.330.0120.00721.78
8.1.320.0100.00616.51
8.1.310.0040.00416.73
8.1.300.0060.00318.69
8.1.290.0060.00318.88
8.1.280.0090.00625.92
8.1.270.0030.00620.81
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0080.00322.16
8.1.230.0000.01220.96
8.1.220.0080.00017.74
8.1.210.0090.00018.77
8.1.200.0000.01017.23
8.1.190.0030.00617.35
8.1.180.0050.00318.10
8.1.170.0080.00018.65
8.1.160.0000.00718.91
8.1.150.0040.00418.93
8.1.140.0030.00520.84
8.1.130.0030.00317.57
8.1.120.0040.00417.47
8.1.110.0000.00817.46
8.1.100.0040.00417.44
8.1.90.0030.00617.48
8.1.80.0040.00417.48
8.1.70.0070.00017.52
8.1.60.0030.00517.61
8.1.50.0040.00417.49
8.1.40.0000.00817.63
8.1.30.0040.00417.72
8.1.20.0000.00817.75
8.1.10.0040.00417.68
8.1.00.0020.00517.63
8.0.300.0000.00718.77
8.0.290.0040.00416.75
8.0.280.0040.00418.46
8.0.270.0040.00417.37
8.0.260.0030.00316.98
8.0.250.0080.00316.93
8.0.240.0030.00617.12
8.0.230.0000.00716.92
8.0.220.0060.00017.01
8.0.210.0070.00016.89
8.0.200.0030.00316.93
8.0.190.0090.00017.06
8.0.180.0030.00516.98
8.0.170.0060.00317.01
8.0.160.0080.00016.93
8.0.150.0040.00417.01
8.0.140.0070.00016.83
8.0.130.0030.00313.50
8.0.120.0060.00316.87
8.0.110.0030.00517.01
8.0.100.0000.00717.01
8.0.90.0000.00816.95
8.0.80.0060.01116.96
8.0.70.0000.00816.86
8.0.60.0050.00316.95
8.0.50.0000.00916.84
8.0.30.0130.00417.23
8.0.20.0090.01017.10
8.0.10.0040.00417.11
8.0.00.0110.01016.91
7.4.330.0000.00615.55
7.4.320.0000.00716.72
7.4.300.0030.00316.75
7.4.290.0030.00516.73
7.4.280.0000.00816.82
7.4.270.0040.00416.76
7.4.260.0030.00313.44
7.4.250.0080.00016.63
7.4.240.0030.00316.70
7.4.230.0030.00316.60
7.4.220.0050.00216.65
7.4.210.0060.00816.74
7.4.200.0030.00516.41
7.4.140.0120.00917.86
7.4.130.0030.01516.66
7.4.120.0120.00616.62
7.4.110.0170.00016.62
7.4.100.0100.01016.58
7.4.90.0130.00316.43
7.4.80.0090.01019.39
7.4.70.0210.00316.73
7.4.60.0160.00816.79
7.4.50.0090.00916.69
7.4.40.0090.00916.56
7.4.10.0030.01715.07
7.4.00.0080.00715.01
7.3.330.0000.00816.40
7.3.320.0060.00013.29
7.3.310.0000.00716.37
7.3.300.0040.00416.29
7.3.290.0070.00016.30
7.3.280.0030.01216.40
7.3.260.0120.00816.65
7.3.240.0120.00616.60
7.3.230.0130.00316.45
7.3.210.0030.01616.62
7.3.200.0080.00916.40
7.3.190.0030.01316.43
7.3.180.0120.00416.27
7.3.170.0060.00916.60
7.3.160.0080.00816.66
7.3.130.0110.00715.29
7.3.120.0080.00914.97
7.3.110.0070.01115.15
7.3.100.0080.00615.15
7.3.90.0090.00615.13
7.3.80.0070.00514.88
7.3.70.0100.01214.86
7.3.60.0050.01114.93
7.3.50.0090.00514.96
7.3.40.0080.00414.69
7.3.30.0100.00214.74
7.3.20.0100.00615.77
7.3.10.0130.00515.81
7.3.00.0140.00715.99
7.2.330.0080.00816.82
7.2.320.0090.01216.83
7.2.310.0090.00616.72
7.2.300.0060.01016.69
7.2.290.0060.01216.55
7.2.260.0070.01115.13
7.2.250.0070.00715.39
7.2.240.0070.00715.03
7.2.230.0090.00615.46
7.2.220.0070.00714.89
7.2.210.0110.00315.34
7.2.200.0100.01015.04
7.2.190.0090.00715.24
7.2.180.0060.00915.28
7.2.170.0120.00914.88
7.2.160.0070.00915.28
7.2.150.0140.00515.95
7.2.140.0090.00916.14
7.2.130.0130.00916.07
7.2.120.0120.00516.05
7.2.110.0110.00616.14
7.2.100.0070.00716.10
7.2.90.0110.00816.00
7.2.80.0490.01816.00
7.2.70.0130.00816.13
7.2.60.0110.00815.96
7.2.50.0170.00715.94
7.2.40.0160.00616.09
7.2.30.0130.00816.09
7.2.20.0080.01016.09
7.2.10.0070.00815.98
7.2.00.0120.00716.00
7.1.330.0090.00315.94
7.1.320.0120.00316.14
7.1.310.0120.00914.84
7.1.300.0120.00515.02
7.1.290.0200.00715.00
7.1.280.0120.00915.06
7.1.270.0090.00814.97
7.1.260.0130.00914.90
7.1.250.0110.01015.16
7.1.240.0030.00715.91
7.1.230.0100.00316.02
7.1.220.0030.00615.93
7.1.210.0040.00816.11
7.1.200.0070.00716.09
7.1.190.0030.01216.00
7.1.180.0150.00315.95
7.1.170.0040.01115.96
7.1.160.0060.00615.97
7.1.150.0080.00415.72
7.1.140.0120.00315.90
7.1.130.0030.00715.75
7.1.120.0070.01015.73
7.1.110.0060.00915.74
7.1.100.0060.00615.75
7.1.90.0040.00816.09
7.1.80.0070.00716.05
7.1.70.0070.01016.10
7.1.60.0030.01316.07
7.1.50.0090.00616.04
7.1.40.0060.00616.04
7.1.30.0040.01115.70
7.1.20.0090.00616.07
7.1.10.0030.01316.06
7.1.00.0000.01415.90

preferences:
88.41 ms | 403 KiB | 5 Q