3v4l.org

run code in 300+ PHP versions simultaneously
<?php $bigKml = "<br><img src='files/bagel.png'><br><br>"; $pattern = "/<img src=.*?>/"; preg_match($pattern, $bigKml, $imageTags); print_r($imageTags); foreach($imageTags as $imageTag) { $pattern = "/'([^']*)'/"; preg_match($urlPattern, $imageTag, $oldUrls); $oldUrl = $oldUrls[0]; print_r($oldUrl); } ?>

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.70.0140.00718.31
8.3.60.0120.00316.75
8.3.50.0080.01017.43
8.3.40.0070.00718.89
8.3.30.0090.00618.83
8.3.20.0040.00418.85
8.3.10.0090.00020.52
8.3.00.0080.00019.50
8.2.180.0070.01016.75
8.2.170.0000.01522.96
8.2.160.0090.00620.89
8.2.150.0080.00024.18
8.2.140.0070.00024.66
8.2.130.0040.00426.16
8.2.120.0050.00320.83
8.2.110.0090.00020.35
8.2.100.0000.01218.13
8.2.90.0080.00019.17
8.2.80.0040.00418.00
8.2.70.0030.00617.88
8.2.60.0080.00018.05
8.2.50.0050.00318.07
8.2.40.0000.00818.15
8.2.30.0080.00018.04
8.2.20.0090.00019.67
8.2.10.0070.00017.97
8.2.00.0080.00017.84
8.1.280.0080.00825.92
8.1.270.0080.00023.99
8.1.260.0050.00326.35
8.1.250.0050.00328.09
8.1.240.0060.00323.97
8.1.230.0060.00617.69
8.1.220.0040.00417.79
8.1.210.0000.00818.77
8.1.200.0030.00617.48
8.1.190.0090.00017.40
8.1.180.0040.00418.10
8.1.170.0030.00618.79
8.1.160.0050.00218.90
8.1.150.0040.00418.71
8.1.140.0040.00417.67
8.1.130.0050.00317.86
8.1.120.0000.00717.53
8.1.110.0080.00017.61
8.1.100.0080.00017.65
8.1.90.0050.00217.60
8.1.80.0000.00717.65
8.1.70.0070.00017.52
8.1.60.0030.00517.57
8.1.50.0000.00817.50
8.1.40.0000.00817.66
8.1.30.0030.00617.75
8.1.20.0040.00417.64
8.1.10.0090.00017.72
8.1.00.0040.00417.52
8.0.300.0000.00718.77
8.0.290.0070.00316.75
8.0.280.0040.00418.47
8.0.270.0080.00017.28
8.0.260.0000.00716.95
8.0.250.0000.00717.17
8.0.240.0070.00017.17
8.0.230.0040.00417.09
8.0.220.0000.00817.09
8.0.210.0040.00416.97
8.0.200.0000.00717.20
8.0.190.0040.00417.16
8.0.180.0070.00017.09
8.0.170.0000.00816.98
8.0.160.0070.00016.99
8.0.150.0060.00617.02
8.0.140.0110.00017.09
8.0.130.0000.00613.51
8.0.120.0000.00817.09
8.0.110.0030.00517.12
8.0.100.0000.00717.09
8.0.90.0040.00417.22
8.0.80.0100.00717.16
8.0.70.0050.00317.18
8.0.60.0020.00516.97
8.0.50.0050.00317.08
8.0.30.0110.00717.09
8.0.20.0060.01617.45
8.0.10.0040.00417.24
8.0.00.0080.01516.90
7.4.330.0030.00213.27
7.4.320.0060.00016.79
7.4.300.0030.00316.70
7.4.290.0070.00016.70
7.4.280.0030.00616.64
7.4.270.0000.00716.87
7.4.260.0030.00313.39
7.4.250.0040.00416.76
7.4.240.0000.00716.72
7.4.230.0040.00416.61
7.4.220.0090.00916.91
7.4.210.0100.00716.91
7.4.200.0050.00216.91
7.4.190.0040.00416.91
7.4.160.0100.00716.67
7.4.150.0130.01316.70
7.4.140.0090.00916.82
7.4.130.0070.01016.73
7.4.120.0100.00716.77
7.4.110.0070.01116.91
7.4.100.0070.01116.68
7.4.90.0130.01016.85
7.4.80.0170.00019.39
7.4.70.0060.01016.68
7.4.60.0150.00316.74
7.4.50.0030.00616.68
7.4.40.0120.00316.83
7.4.30.0090.00616.84
7.4.00.0030.01415.19
7.3.330.0000.00613.39
7.3.320.0060.00013.36
7.3.310.0030.00316.47
7.3.300.0070.00016.52
7.3.290.0090.01116.49
7.3.280.0060.01116.47
7.3.270.0070.01116.58
7.3.260.0120.00616.76
7.3.250.0050.01316.57
7.3.240.0100.00716.51
7.3.230.0070.01116.61
7.3.210.0060.01116.73
7.3.200.0110.00616.55
7.3.190.0110.00716.63
7.3.180.0090.00916.68
7.3.170.0060.00916.60
7.3.160.0120.00316.48
7.3.120.0030.01015.16
7.2.330.0140.00616.84
7.2.320.0070.01016.82
7.2.310.0090.00916.74
7.2.300.0060.01216.88
7.2.290.0140.00316.82
7.2.60.0000.01417.30
7.2.50.0160.00317.26
7.1.200.0100.00616.18
7.1.70.0020.00516.98
7.1.60.0060.00619.30
7.1.50.0150.01716.93
7.1.00.0000.06722.38
7.0.200.0120.00314.80
7.0.140.0070.07022.16
7.0.120.0030.07022.19
7.0.60.0070.07319.88
7.0.50.0070.05717.74
7.0.40.0100.08020.07
7.0.30.0370.07720.09
7.0.20.0330.04720.15
7.0.10.0070.05720.07
7.0.00.0100.07720.27
5.6.280.0070.07020.85
5.6.210.0130.04020.53
5.6.200.0070.04018.19
5.6.190.0000.07020.64
5.6.180.0300.07020.77
5.6.170.0270.05720.54
5.6.160.0100.08720.50
5.6.150.0100.07718.29
5.6.140.0030.08718.24
5.6.130.0100.05018.15
5.6.120.0030.09021.13
5.6.110.0030.08721.03
5.6.100.0130.07720.99
5.6.90.0100.06720.97
5.6.80.0070.03720.53
5.5.350.0270.03720.32
5.5.340.0030.07017.94
5.5.330.0070.04020.13
5.5.320.0370.05320.29
5.5.310.0330.05720.34
5.5.300.0070.04717.98
5.5.290.0070.04317.98
5.5.280.0000.06720.76
5.5.270.0130.08320.86
5.5.260.0070.08320.97
5.5.250.0100.06020.57
5.5.240.0070.07720.27
5.4.450.0100.08019.20
5.4.440.0200.04319.24
5.4.430.0030.04319.19
5.4.420.0030.04319.47
5.4.410.0100.04319.11
5.4.400.0170.07019.15
5.4.390.0070.05319.15
5.4.380.0070.07319.25
5.4.370.0100.03319.20
5.4.360.0030.04019.20
5.4.350.0070.05319.25
5.4.340.0130.05318.92
5.4.320.0230.05319.20
5.4.310.0100.05318.87
5.4.300.0030.05719.14
5.4.290.0130.05019.09
5.4.280.0130.07318.84
5.4.270.0030.08018.91
5.4.260.0100.03719.25
5.4.250.0100.06018.91
5.4.240.0030.08719.14
5.4.230.0070.05319.14
5.4.220.0100.04319.23
5.4.210.0070.06719.11
5.4.200.0130.05318.97
5.4.190.0070.05018.93
5.4.180.0070.07719.24
5.4.170.0070.07719.27
5.4.160.0130.05718.83
5.4.150.0100.04719.13
5.4.140.0070.07716.41
5.4.130.0100.06716.41
5.4.120.0070.07016.41
5.4.110.0000.05016.49
5.4.100.0100.05016.45
5.4.90.0070.06716.39
5.4.80.0070.04716.44
5.4.70.0100.06016.41
5.4.60.0070.03316.31
5.4.50.0070.04316.30
5.4.40.0030.03716.39
5.4.30.0070.06316.44
5.4.20.0070.06716.44
5.4.10.0070.07316.38
5.4.00.0070.07015.80
5.3.290.0100.07714.73
5.3.280.0070.06714.60
5.3.270.0070.07714.52
5.3.260.0030.04314.60
5.3.250.0070.04714.59
5.3.240.0000.04714.65
5.3.230.0030.08014.60
5.3.220.0000.04014.61
5.3.210.0030.04014.61
5.3.200.0130.04714.45
5.3.190.0070.06014.48
5.3.180.0030.07314.62
5.3.170.0030.04014.58
5.3.160.0130.05014.63
5.3.150.0000.05714.70
5.3.140.0030.04314.61
5.3.130.0030.08014.58
5.3.120.0030.06714.43
5.3.110.0070.05714.54
5.3.100.0070.04714.06
5.3.90.0030.07714.01
5.3.80.0070.07314.01
5.3.70.0100.05714.01
5.3.60.0000.04314.00
5.3.50.0100.06314.10
5.3.40.0070.03713.99
5.3.30.0100.04013.96
5.3.20.0030.07713.68
5.3.10.0100.05713.57
5.3.00.0130.04013.63
5.2.170.0070.06011.16
5.2.160.0130.04011.30
5.2.150.0030.03011.29
5.2.140.0000.04011.21
5.2.130.0070.03311.09
5.2.120.0100.03311.28
5.2.110.0000.05311.25
5.2.100.0100.04311.25
5.2.90.0030.06011.14
5.2.80.0070.03311.23
5.2.70.0070.03711.04
5.2.60.0000.04011.19
5.2.50.0070.02711.00
5.2.40.0000.04011.00
5.2.30.0030.03011.00
5.2.20.0030.06310.95
5.2.10.0030.06010.82
5.2.00.0130.05310.85
5.1.60.0000.0339.96
5.1.50.0000.0579.97
5.1.40.0030.0509.94
5.1.30.0070.05310.49
5.1.20.0070.05010.32
5.1.10.0070.03310.05
5.1.00.0100.05310.08
5.0.50.0030.0238.44
5.0.40.0070.0408.31
5.0.30.0000.0638.17
5.0.20.0070.0408.26
5.0.10.0100.0408.07
5.0.00.0070.0608.12
4.4.90.0070.0337.70
4.4.80.0000.0177.70
4.4.70.0070.0177.70
4.4.60.0000.0377.70
4.4.50.0070.0277.70
4.4.40.0000.0337.70
4.4.30.0000.0407.70
4.4.20.0030.0207.70
4.4.10.0100.0137.70
4.4.00.0100.0407.70
4.3.110.0030.0377.70
4.3.100.0030.0307.70
4.3.90.0100.0277.70
4.3.80.0000.0377.70
4.3.70.0000.0407.70
4.3.60.0030.0377.70
4.3.50.0070.0277.70
4.3.40.0070.0507.70
4.3.30.0030.0337.70
4.3.20.0000.0207.70
4.3.10.0030.0237.70
4.3.00.0000.0137.70

preferences:
55.65 ms | 401 KiB | 5 Q