3v4l.org

run code in 300+ PHP versions simultaneously
<?php $url="http://kakaku.com/camera/camera-lens/itemlist.aspx?pdf_Spec103=13";//取得したいURL $html=file_get_contents($url);//htmlをゴソっと取得 mb_language("Japanese");//エンコードエラー対策 $html=mb_convert_encoding($html,"utf8","auto");//文字コードをUTF-8に変換 $html=preg_replace("/(\n|\r)/","",$html);//改行コードを全部消す preg_match_all('@\<div class=\"ranking\"\>(.*?)\<\/div\>@u',$html,$matches);//配列に入れる foreach($matches[0] as $match){ //商品名 preg_match('@\<a class=\"ckitanker\"\>(.*)\<\/a\>',$match,$product_moto); $product=$product_moto[1]; print '商品名:'.$product.'<br />'; } ?>

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.40.0120.00619.25
8.3.30.0120.00319.20
8.3.20.0040.00420.63
8.3.10.0040.00423.87
8.3.00.0030.00619.88
8.2.170.0090.00922.96
8.2.160.0030.01022.71
8.2.150.0060.00324.18
8.2.140.0080.00024.66
8.2.130.0080.00026.16
8.2.120.0090.00018.63
8.2.110.0040.00420.72
8.2.100.0120.00018.53
8.2.90.0030.00519.76
8.2.80.0050.00318.11
8.2.70.0060.00318.38
8.2.60.0080.00018.42
8.2.50.0060.00318.25
8.2.40.0000.00819.76
8.2.30.0020.00521.00
8.2.20.0030.00618.32
8.2.10.0040.00418.63
8.2.00.0040.00418.70
8.1.270.0060.00324.21
8.1.260.0000.00926.35
8.1.250.0000.00728.09
8.1.240.0060.00324.04
8.1.230.0030.00921.41
8.1.220.0030.00618.15
8.1.210.0060.00318.77
8.1.200.0030.00617.97
8.1.190.0030.00617.97
8.1.180.0030.00618.10
8.1.170.0070.00319.27
8.1.160.0000.00722.42
8.1.150.0000.00819.31
8.1.140.0030.00519.98
8.1.130.0040.00418.14
8.1.120.0040.00417.87
8.1.110.0060.00317.91
8.1.100.0030.00618.07
8.1.90.0000.00818.01
8.1.80.0000.00717.83
8.1.70.0030.00317.84
8.1.60.0000.00917.97
8.1.50.0060.00318.00
8.1.40.0030.00517.96
8.1.30.0030.00618.23
8.1.20.0030.00618.17
8.1.10.0000.00818.12
8.1.00.0000.00918.03
8.0.300.0060.00318.77
8.0.290.0050.00317.38
8.0.280.0000.00718.89
8.0.270.0040.00417.70
8.0.260.0000.00717.59
8.0.250.0000.00817.57
8.0.240.0030.00317.56
8.0.230.0070.00017.62
8.0.220.0030.00417.46
8.0.210.0000.00717.42
8.0.200.0040.00417.47
8.0.190.0050.00217.45
8.0.180.0080.00017.63
8.0.170.0040.00417.45
8.0.160.0030.00517.56
8.0.150.0000.00717.43
8.0.140.0040.00417.48
8.0.130.0030.00314.07
8.0.120.0030.00617.53
8.0.110.0040.00417.62
8.0.100.0030.00617.54
8.0.90.0060.00317.63
8.0.80.0060.00917.66
8.0.70.0040.00417.47
8.0.60.0000.00817.68
8.0.50.0040.00417.54
8.0.30.0100.00917.76
8.0.20.0120.01117.52
8.0.10.0070.00017.57
8.0.00.0070.01117.32
7.4.330.0030.00315.55
7.4.320.0000.00617.06
7.4.300.0000.00717.02
7.4.290.0040.00417.00
7.4.280.0030.00617.11
7.4.270.0000.00716.94
7.4.260.0000.00716.83
7.4.250.0030.00616.99
7.4.240.0020.00617.06
7.4.230.0040.00417.15
7.4.220.0100.00917.05
7.4.210.0070.01417.10
7.4.200.0040.00416.91
7.4.160.0110.00617.09
7.4.150.0180.00017.40
7.4.140.0090.01117.86
7.4.130.0110.01017.09
7.4.120.0120.01017.19
7.4.110.0160.00716.98
7.4.100.0120.00617.00
7.4.90.0150.00416.97
7.4.80.0100.01019.39
7.4.70.0180.00416.99
7.4.60.0060.01117.02
7.4.50.0090.00016.98
7.4.40.0090.00916.97
7.4.30.0110.00817.25
7.4.00.0130.00315.63
7.3.330.0030.00513.72
7.3.320.0060.00013.71
7.3.310.0040.00416.85
7.3.300.0040.00416.88
7.3.290.0090.00616.83
7.3.280.0160.00316.83
7.3.270.0110.00717.40
7.3.260.0120.00617.06
7.3.250.0090.00916.90
7.3.240.0120.00616.96
7.3.230.0040.01516.84
7.3.210.0100.00716.87
7.3.200.0170.00617.07
7.3.190.0100.00716.87
7.3.180.0100.01017.12
7.3.170.0030.01516.97
7.3.160.0090.01216.95
7.2.330.0150.00317.11
7.2.320.0090.01217.18
7.2.310.0080.01217.14
7.2.300.0030.01417.07
7.2.290.0140.00417.28
7.2.60.0080.00817.54
7.2.00.0000.00920.08
7.1.200.0070.00316.43
7.1.100.0070.01418.85
7.1.70.0060.00317.71
7.1.60.0060.01919.43
7.1.50.0140.01117.63
7.1.00.0000.07722.78
7.0.200.0110.00715.33
7.0.60.0070.08720.46
7.0.50.0100.07718.10
7.0.40.0030.04320.64
7.0.30.0000.04320.59
7.0.20.0270.05020.46
7.0.10.0030.04320.61
7.0.00.0130.08020.46
5.6.280.0030.06021.22
5.6.210.0070.08321.05
5.6.200.0030.04018.64
5.6.190.0070.08021.00
5.6.180.0270.05021.07
5.6.170.0230.04720.83
5.6.160.0100.08020.78
5.6.150.0030.05718.42
5.6.140.0130.07718.56
5.6.130.0030.09018.44
5.6.120.0070.08321.39
5.6.110.0130.07721.32
5.6.100.0070.07321.34
5.6.90.0030.06021.23
5.6.80.0130.07720.81
5.5.350.0230.08020.66
5.5.340.0000.08718.32
5.5.330.0130.07720.88
5.5.320.0230.04720.77
5.5.310.0230.07320.65
5.5.300.0030.04018.37
5.5.290.0070.07018.33
5.5.280.0070.09021.09
5.5.270.0170.05721.35
5.5.260.0030.05321.24
5.5.250.0100.05720.87
5.5.240.0030.07720.39
5.4.450.0630.05020.09
5.4.440.0800.06319.97
5.4.430.0700.05320.12
5.4.420.0730.07020.10
5.4.410.0530.06019.79
5.4.400.0600.04319.80
5.4.390.0830.06019.79
5.4.380.0700.05019.74
5.4.370.0600.05319.64
5.4.360.0600.05719.59
5.4.350.0800.06319.68
5.4.340.0570.06319.66
5.4.320.0770.05319.59
5.4.310.0630.04719.75
5.4.300.0630.06019.80
5.4.290.0570.05019.64
5.4.280.0670.06319.55
5.4.270.0800.05019.64
5.4.260.0700.04719.74
5.4.250.0700.05019.67
5.4.240.0630.05319.74
5.4.230.0630.06719.82
5.4.220.0600.06019.77
5.4.210.0700.04719.68
5.4.200.0670.04719.66
5.4.190.0530.05719.66
5.4.180.0670.05019.58
5.4.170.0570.07019.58
5.4.160.0700.06019.79
5.4.150.0700.05019.75
5.4.140.0670.06317.00
5.4.130.0600.05017.05
5.4.120.0670.04317.05
5.4.110.0570.04717.04
5.4.100.0500.06017.03
5.4.90.0570.05317.07
5.4.80.0700.04016.95
5.4.70.0600.05017.19
5.4.60.0670.07717.01
5.4.50.0770.06317.14
5.4.40.0670.04316.93
5.4.30.0530.05316.95
5.4.20.0600.05017.03
5.4.10.0600.05016.93
5.4.00.0600.05016.57

preferences:
50.53 ms | 400 KiB | 5 Q