3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = array(); $url = base64_decode('aHR0cDovL3d3dy5ob25nZmFuZ2ViYnMuY29tL2ZvcnVtLnBocD9tb2Q9Zm9ydW1kaXNwbGF5JmZpZD00MSZwYWdlPXtwYWdlfQ=='); $video_url = base64_decode('aHR0cDovLzh1NG50OTFlOGZnejJxbmo0dG01Nmp5eGFzeXAyYmZ4NTZqZ3plLnppY2RuLmNvbS92aWRlb3dtL3t1cmx9LmZsdg=='); $preg_rule = '/\<img\s+src\=\"([^<]*)\"\s+alt\=\"([^<]*)\"\s+width\=\"358\"\s+\/\>/isU'; for($i = 1; $i<= 50 ; $i++){ $real_url = str_replace('{page}',$i,$url); $html = file_get_contents($real_url); preg_match_all($preg_rule,$html,$match); foreach($match[1] as $k=>$v){ $data[] = array('img'=>$match[1][$k],'title'=>$match[2][$k],'url'=> str_replace('{url}',$match[2][$k],$video_url)); } } print_r($data);

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.0190.00617.38
8.3.50.0040.01418.45
8.3.40.0120.01219.40
8.3.30.0120.00419.18
8.3.20.0050.00320.54
8.3.10.0060.00323.98
8.3.00.0040.00420.22
8.2.180.0080.00816.73
8.2.170.0150.00022.96
8.2.160.0220.00020.60
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0030.00621.29
8.2.120.0090.00026.35
8.2.110.0000.00922.34
8.2.100.0060.00618.41
8.2.90.0050.00319.38
8.2.80.0060.00318.00
8.2.70.0000.00917.75
8.2.60.0000.00918.18
8.2.50.0060.00318.07
8.2.40.0030.00722.66
8.2.30.0030.00520.77
8.2.20.0000.00818.17
8.2.10.0000.00818.34
8.2.00.0030.00618.28
8.1.280.0130.01025.92
8.1.270.0140.00322.26
8.1.260.0050.00328.09
8.1.250.0060.00328.09
8.1.240.0030.00720.94
8.1.230.0080.00422.95
8.1.220.0060.00317.91
8.1.210.0030.00518.77
8.1.200.0060.00317.60
8.1.190.0000.00917.48
8.1.180.0090.00018.10
8.1.170.0060.00618.94
8.1.160.0040.00421.02
8.1.150.0030.00519.12
8.1.140.0060.00319.68
8.1.130.0000.00717.93
8.1.120.0000.00817.77
8.1.110.0000.00817.87
8.1.100.0000.00817.71
8.1.90.0000.00817.74
8.1.80.0050.00317.71
8.1.70.0030.00517.73
8.1.60.0030.00517.86
8.1.50.0050.00517.81
8.1.40.0050.00517.84
8.1.30.0030.00617.91
8.1.20.0040.00417.93
8.1.10.0050.00517.82
8.1.00.0050.00317.75
8.0.300.0030.00518.77
8.0.290.0030.00617.25
8.0.280.0040.00418.74
8.0.270.0000.00717.49
8.0.260.0030.00317.43
8.0.250.0040.00417.38
8.0.240.0000.00817.47
8.0.230.0000.00717.45
8.0.220.0040.00717.27
8.0.210.0040.00417.41
8.0.200.0000.00717.38
8.0.190.0000.00817.25
8.0.180.0040.00417.40
8.0.170.0030.00617.36
8.0.160.0030.00617.43
8.0.150.0060.00317.34
8.0.140.0060.00317.23
8.0.130.0070.00013.95
8.0.120.0060.00617.23
8.0.110.0000.01117.30
8.0.100.0030.00717.32
8.0.90.0070.00317.29
8.0.80.0030.02417.37
8.0.70.0030.00717.21
8.0.60.0030.00717.39
8.0.50.0030.00717.34
8.0.30.0160.01217.50
8.0.20.0190.01117.42
8.0.10.0030.00717.34
8.0.00.0180.01117.05
7.4.330.0030.00317.11
7.4.320.0030.00516.92
7.4.300.0000.00716.89
7.4.290.0030.00517.02
7.4.280.0060.00316.75
7.4.270.0050.00217.07
7.4.260.0000.00816.86
7.4.250.0080.00417.08
7.4.240.0080.00317.02
7.4.230.0030.00617.12
7.4.220.0210.00817.06
7.4.210.0120.01017.07
7.4.200.0100.00016.91
7.4.160.0160.01016.95
7.4.150.0110.01717.40
7.4.140.0190.01817.86
7.4.130.0160.01216.89
7.4.120.0170.01116.99
7.4.110.0170.01117.07
7.4.100.0140.01416.91
7.4.90.0100.01617.14
7.4.80.0140.01619.39
7.4.70.0140.01116.76
7.4.60.0210.00616.80
7.4.50.0130.01016.78
7.4.40.0090.01716.91
7.4.30.0220.01016.81
7.4.00.0090.01715.20
7.3.330.0070.00213.82
7.3.320.0030.00313.66
7.3.310.0030.00616.80
7.3.300.0090.00016.84
7.3.290.0150.00916.77
7.3.280.0150.00916.84
7.3.270.0190.00917.40
7.3.260.0170.01016.71
7.3.250.0200.01216.87
7.3.240.0190.01416.81
7.3.230.0130.01416.85
7.3.210.0140.01517.11
7.3.200.0180.00916.80
7.3.190.0220.00316.69
7.3.180.0100.02016.98
7.3.170.0140.01416.66
7.3.160.0160.01016.84
7.3.120.0210.00015.10
7.3.110.0120.01015.34
7.3.100.0180.00615.23
7.3.90.0100.00715.32
7.3.80.0090.01215.24
7.3.70.0090.01615.11
7.3.60.0230.00015.04
7.3.50.0090.01414.97
7.3.40.0060.01615.08
7.3.30.0130.01215.07
7.3.20.0150.00317.10
7.3.10.0190.00316.74
7.3.00.0140.00917.11
7.2.330.0220.00617.23
7.2.320.0120.01317.10
7.2.310.0160.01016.94
7.2.300.0160.01316.98
7.2.290.0180.01917.09
7.2.240.0060.01415.44
7.2.230.0180.00315.16
7.2.220.0090.01315.66
7.2.210.0110.01215.22
7.2.200.0160.00715.52
7.2.190.0160.00715.25
7.2.180.0060.01715.63
7.2.170.0130.00715.17
7.2.160.0130.01115.38
7.2.150.0180.00617.38
7.2.140.0120.00717.38
7.2.130.0100.01317.26
7.2.120.0110.01317.22
7.2.110.0200.00617.16
7.2.100.0180.00617.19
7.2.90.0210.00617.27
7.2.80.0090.01217.44
7.2.70.0120.01417.14
7.2.60.0130.00817.26
7.2.50.0140.01217.36
7.2.40.0200.00617.49
7.2.30.0130.00917.59
7.2.20.0180.00317.41
7.2.10.0120.00917.24
7.2.00.0110.01118.70
7.1.330.0100.01015.92
7.1.320.0090.01316.20
7.1.310.0060.01516.19
7.1.300.0140.00416.26
7.1.290.0140.00516.23
7.1.280.0040.01116.27
7.1.270.0090.01216.14
7.1.260.0060.01416.30
7.1.250.0130.01116.16
7.1.200.0250.00416.13
7.1.100.0060.01218.21
7.1.70.0040.00417.26
7.1.60.0040.02119.05
7.1.50.0070.01017.59
7.1.00.0130.07722.71
7.0.200.0080.01215.35
7.0.60.0130.06320.28
7.0.50.0100.06018.18
7.0.40.0170.03720.68
7.0.30.0170.05020.57
7.0.20.0330.08720.52
7.0.10.0070.04320.47
7.0.00.0200.06320.58
5.6.210.0200.05020.94
5.6.200.0200.07718.42
5.6.190.0200.08720.93
5.6.180.0230.04721.15
5.6.170.0370.07320.85
5.6.160.0170.06320.87
5.6.150.0130.03318.47
5.6.140.0200.07318.42
5.6.130.0130.09018.54
5.6.120.0130.09021.26
5.6.110.0230.07021.41
5.6.100.0170.08021.43
5.6.90.0070.09321.41
5.6.80.0170.06320.92
5.5.350.0170.09020.63
5.5.340.0070.08018.47
5.5.330.0230.05020.74
5.5.320.0330.04020.75
5.5.310.0200.04020.69
5.5.300.0170.07718.27
5.5.290.0170.05018.54
5.5.280.0130.08321.06
5.5.270.0170.08021.22
5.5.260.0130.08321.25
5.5.250.0100.04020.85
5.5.240.0330.07020.57

preferences:
60.26 ms | 401 KiB | 5 Q