3v4l.org

run code in 300+ PHP versions simultaneously
<?php $title = array(); $thumb = array(); $string = ''; preg_match_all("/\<div class=\"merchant_info\">\s*(\<div.*?\<\/div>\s*)?(.*?)\<\/div\>/is", $res[0], $matches ); foreach($matches[0] as $titles){ $title[] = "<div class='titles' >".$titles."</div>"; } preg_match_all("/\<a class=\"thumb\"(.*?)\<\/a\>/is", $res[0], $matches); foreach($matches[0] as $thumbs){ $thumb[] = "<div class='thumbs' >".$thumbs."</div>"; } for($i = 0; $i < count($title); $i++){ $string .= $title[$i] . $thumb[$i]; } echo $string;

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.0070.01418.81
8.3.50.0100.01017.65
8.3.40.0150.00719.04
8.3.30.0070.00718.92
8.3.20.0000.00819.02
8.3.10.0030.00520.90
8.3.00.0040.00417.84
8.2.180.0040.01116.88
8.2.170.0070.01422.96
8.2.160.0030.01322.23
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0000.00826.16
8.2.120.0080.00020.20
8.2.110.0030.00621.05
8.2.100.0080.00418.03
8.2.90.0040.00419.02
8.2.80.0000.00817.89
8.2.70.0040.00417.75
8.2.60.0030.00618.05
8.2.50.0040.00418.07
8.2.40.0050.00218.34
8.2.30.0060.00318.16
8.2.20.0040.00418.02
8.2.10.0040.00417.99
8.2.00.0040.00417.93
8.1.280.0040.01125.92
8.1.270.0000.00823.99
8.1.260.0080.00026.35
8.1.250.0070.00028.09
8.1.240.0060.00322.53
8.1.230.0110.00020.89
8.1.220.0000.00817.74
8.1.210.0040.00418.78
8.1.200.0040.00717.48
8.1.190.0040.00417.40
8.1.180.0040.00418.10
8.1.170.0080.00018.88
8.1.160.0070.00018.97
8.1.150.0000.00718.88
8.1.140.0040.00417.56
8.1.130.0000.00817.62
8.1.120.0050.00217.61
8.1.110.0000.00717.64
8.1.100.0000.00717.65
8.1.90.0000.00817.51
8.1.80.0040.00417.61
8.1.70.0030.00317.60
8.1.60.0000.00817.62
8.1.50.0040.00417.64
8.1.40.0040.00417.71
8.1.30.0070.00017.78
8.1.20.0040.00417.75
8.1.10.0030.00617.72
8.1.00.0000.00817.59
8.0.300.0040.00420.16
8.0.290.0000.00717.00
8.0.280.0040.00418.49
8.0.270.0000.00717.27
8.0.260.0070.00017.04
8.0.250.0040.00417.13
8.0.240.0040.00417.09
8.0.230.0030.00317.17
8.0.220.0070.00017.09
8.0.210.0040.00417.11
8.0.200.0040.00417.16
8.0.190.0000.00817.12
8.0.180.0070.00017.03
8.0.170.0060.00317.09
8.0.160.0000.00717.13
8.0.150.0000.00817.11
8.0.140.0060.00617.06
8.0.130.0000.00513.60
8.0.120.0070.00017.11
8.0.110.0000.00817.21
8.0.100.0000.00716.95
8.0.90.0000.00816.95
8.0.80.0060.00917.14
8.0.70.0050.00316.98
8.0.60.0070.00017.18
8.0.50.0020.00516.99
8.0.30.0110.00817.19
8.0.20.0140.00817.20
8.0.10.0040.00417.17
8.0.00.0050.01416.97
7.4.330.0020.00213.20
7.4.320.0030.00316.75
7.4.300.0000.00716.82
7.4.290.0000.00716.82
7.4.280.0070.00316.80
7.4.270.0050.00216.75
7.4.260.0000.00613.50
7.4.250.0030.00516.74
7.4.240.0070.00016.86
7.4.230.0000.00716.72
7.4.220.0130.01016.72
7.4.210.0080.00916.82
7.4.200.0070.00016.92
7.4.190.0040.00416.70
7.4.160.0060.00916.78
7.4.150.0110.00716.57
7.4.140.0080.01316.69
7.4.130.0090.00916.72
7.4.120.0140.00316.65
7.4.110.0110.00716.79
7.4.100.0110.00616.78
7.4.90.0120.00616.72
7.4.80.0180.00516.58
7.4.70.0060.01616.84
7.4.60.0060.01016.74
7.4.50.0000.00616.79
7.4.40.0060.00916.59
7.4.30.0130.00716.93
7.4.00.0040.01415.06
7.3.330.0030.00313.45
7.3.320.0050.00013.48
7.3.310.0050.00216.41
7.3.300.0070.00016.46
7.3.290.0100.01016.49
7.3.280.0090.00716.52
7.3.270.0060.01216.79
7.3.260.0100.00716.68
7.3.250.0140.00516.56
7.3.240.0000.02316.78
7.3.230.0160.00316.68
7.3.210.0080.00816.61
7.3.200.0150.00819.39
7.3.190.0030.01616.81
7.3.180.0060.01016.59
7.3.170.0120.00316.83
7.3.160.0090.00616.61
7.3.120.0050.01115.10
7.3.110.0120.00614.80
7.3.100.0070.00815.32
7.3.90.0020.01015.13
7.3.80.0060.00414.88
7.3.70.0050.01115.01
7.3.60.0050.01015.13
7.3.50.0020.01115.07
7.3.40.0090.00415.18
7.3.30.0060.00815.14
7.3.20.0030.01116.82
7.3.10.0060.01116.76
7.3.00.0080.00816.68
7.2.330.0090.01316.67
7.2.320.0100.00916.96
7.2.310.0120.01216.70
7.2.300.0030.01316.97
7.2.290.0040.01316.68
7.2.250.0030.01715.37
7.2.240.0070.01115.35
7.2.230.0050.00715.24
7.2.220.0080.00615.37
7.2.210.0010.01215.42
7.2.200.0050.00815.23
7.2.190.0080.00815.11
7.2.180.0070.00815.36
7.2.170.0020.01215.30
7.2.130.0130.00716.71
7.2.120.0080.01116.69
7.2.110.0090.00916.90
7.2.100.0110.00717.10
7.2.90.0110.00816.57
7.2.80.0070.01017.25
7.2.70.0130.00317.28
7.2.60.0150.00616.87
7.2.50.0100.00717.18
7.2.40.0150.00916.60
7.2.30.0070.00716.61
7.2.20.0140.00716.96
7.2.10.0190.00517.16
7.2.00.0120.00618.28
7.1.330.0060.00816.05
7.1.320.0050.00815.79
7.1.310.0070.00715.98
7.1.300.0080.00516.02
7.1.290.0000.01016.13
7.1.280.0050.00916.00
7.1.270.0050.00616.02
7.1.260.0040.01015.93
7.1.250.0160.00615.44
7.1.100.0090.00618.25
7.1.70.0060.00617.43
7.1.60.0100.01419.40
7.1.50.0030.02016.93
7.1.00.0100.06722.59
7.0.200.0030.00614.88
7.0.140.0000.08022.07
7.0.120.0030.04722.01
7.0.60.0130.05020.00
7.0.50.0030.08317.78
7.0.40.0070.07320.05
7.0.30.0230.04720.11
7.0.20.0270.07020.14
7.0.10.0030.04720.07
7.0.00.0100.08020.06
5.6.280.0100.06721.06
5.6.210.0130.07720.71
5.6.200.0100.03318.12
5.6.190.0070.08020.48
5.6.180.0270.07020.49
5.6.170.0170.04020.45
5.6.160.0030.08020.38
5.6.150.0000.07318.14
5.6.140.0030.04018.22
5.6.130.0070.04318.11
5.6.120.0030.07320.89
5.6.110.0200.07020.96
5.6.100.0100.07321.13
5.6.90.0030.09020.87
5.6.80.0230.06320.48
5.5.350.0000.07720.49
5.5.340.0100.08017.96
5.5.330.0100.03720.21
5.5.320.0300.04020.13
5.5.310.0230.04020.23
5.5.300.0070.05018.01
5.5.290.0030.07018.02
5.5.280.0030.04320.87
5.5.270.0030.05320.86
5.5.260.0170.04720.76
5.5.250.0030.06320.64
5.5.240.4130.04020.34
5.4.450.0070.05019.25
5.4.440.0070.07019.50
5.4.430.0130.07319.43
5.4.420.0130.07019.41
5.4.410.0130.06318.98
5.4.400.0070.03719.12
5.4.390.0030.05019.08
5.4.380.0030.03719.14
5.4.370.0030.07319.14
5.4.360.0030.04719.14
5.4.350.0070.03319.12
5.4.340.0070.05018.80
5.4.320.0070.05019.04
5.4.310.0070.07019.18
5.4.300.0100.03319.08
5.4.290.0000.04719.08
5.4.280.0130.07319.18
5.4.270.0000.04718.91
5.4.260.0100.07019.17
5.4.250.0070.04318.91
5.4.240.0030.04719.13
5.4.230.0030.07319.14
5.4.220.0100.03719.07
5.4.210.0070.07718.91
5.4.200.0030.03719.07
5.4.190.0030.03719.17
5.4.180.0070.03318.91
5.4.170.0030.03719.07
5.4.160.0100.03718.90
5.4.150.0030.03719.06
5.4.140.0000.03716.39
5.4.130.0070.03016.21
5.4.120.0100.04016.33
5.4.110.0000.04016.44
5.4.100.0030.03316.33
5.4.90.0030.03316.41
5.4.80.0070.03016.31
5.4.70.0000.03716.64
5.4.60.0030.03316.22
5.4.50.0000.03716.21
5.4.40.0030.03716.20
5.4.30.0030.03716.38
5.4.20.0000.03716.57
5.4.10.0000.03716.40
5.4.00.0000.03715.61
5.3.290.0100.07314.55
5.3.280.0100.07714.49
5.3.270.0100.03014.50
5.3.260.0030.03714.48
5.3.250.0000.04014.53
5.3.240.0070.03314.55
5.3.230.0000.04014.54
5.3.220.0000.03714.49
5.3.210.0100.03014.49
5.3.200.0070.03314.66
5.3.190.0000.04014.50
5.3.180.0030.03714.54
5.3.170.0000.03714.65
5.3.160.0070.03314.46
5.3.150.0100.03014.50
5.3.140.0070.03314.50
5.3.130.0070.03314.47
5.3.120.0130.03714.50
5.3.110.0000.04014.50
5.3.100.0100.03013.98
5.3.90.0100.02713.99
5.3.80.0000.04013.96
5.3.70.0070.03313.96
5.3.60.0000.04013.95
5.3.50.0000.04013.79
5.3.40.0000.03713.91
5.3.30.0070.04013.70
5.3.20.0030.07313.79
5.3.10.0100.06313.61
5.3.00.0070.04013.48
5.2.170.0030.02711.12
5.2.160.0070.02311.07
5.2.150.0070.03011.08
5.2.140.0070.06311.08
5.2.130.0000.06711.04
5.2.120.0100.04311.18
5.2.110.0030.03010.98
5.2.100.0100.04711.00
5.2.90.0070.06011.18
5.2.80.0030.03010.98
5.2.70.0000.03310.99
5.2.60.0000.06311.03
5.2.50.0070.06011.02
5.2.40.0070.03310.98
5.2.30.0100.02310.88
5.2.20.0030.02710.95
5.2.10.0030.03311.01
5.2.00.0000.03310.59
5.1.60.0070.03710.09
5.1.50.0100.04710.01
5.1.40.0130.04310.08
5.1.30.0030.03310.34
5.1.20.0130.04710.35
5.1.10.0000.03010.05
5.1.00.0070.05310.14
5.0.50.0070.0378.57
5.0.40.0030.0438.43
5.0.30.0100.0608.24
5.0.20.0030.0438.27
5.0.10.0030.0338.23
5.0.00.0000.0408.21
4.4.90.0000.0278.16
4.4.80.0030.0378.16
4.4.70.0000.0178.16
4.4.60.0030.0338.16
4.4.50.0030.0378.16
4.4.40.0000.0378.16
4.4.30.0070.0308.16
4.4.20.0000.0378.16
4.4.10.0070.0138.16
4.4.00.0070.0378.16
4.3.110.0030.0278.16
4.3.100.0070.0238.16
4.3.90.0030.0378.16
4.3.80.0000.0238.16
4.3.70.0000.0208.16
4.3.60.0000.0178.16
4.3.50.0030.0338.16
4.3.40.0030.0278.16
4.3.30.0000.0238.16
4.3.20.0000.0178.16
4.3.10.0070.0308.16
4.3.00.0000.0278.16

preferences:
35.5 ms | 401 KiB | 5 Q