3v4l.org

run code in 300+ PHP versions simultaneously
<?php $c = new Curl(); $price_page = $c->get('http://www.kitco.com/market/'); //printr(htmlentities($price_page['response'])); //die(); //printr(htmlentities($price_page['response'])); if($price_page['response']){ $bits = explode("London Fix Prices",$price_page['response']); $usd = explode("London Fix Prices",$price_page['response']); $bits = explode("GBP",$bits[1]); $bits = explode("Euro",$bits[1]); $bits = explode("</td>",$bits[0]); $usd = explode("USD",$usd[1]); $usd = explode("GBP",$usd[1]); $usd = explode("</td>",$usd[0]); if(count($bits) == 10){ if(is_numeric(trim(strip_tags($bits[3]))) && is_numeric(trim(strip_tags($bits[1])))){ $ag_lme = trim(strip_tags($bits[3]))/31.103; // in grams $au_lme = trim(strip_tags($bits[1]))/31.103; // in grams $au_lme_usd = trim(strip_tags($usd[1])); $ag_lme_usd = trim(strip_tags($usd[3])); } else{ $error = "Prices not collected from kitco.com"; } } else{ $error = "Prices not collected from kitco.com"; } } else{ $error = "Prices not collected from kitco.com"; }

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.0090.00916.75
8.3.50.0110.00917.40
8.3.40.0080.00818.89
8.3.30.0090.00918.68
8.3.20.0090.00018.85
8.3.10.0060.00320.54
8.3.00.0080.00019.38
8.2.180.0120.00916.50
8.2.170.0040.01122.96
8.2.160.0210.00020.74
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0080.00020.58
8.2.110.0030.00621.00
8.2.100.0060.00617.59
8.2.90.0060.00319.36
8.2.80.0040.00419.46
8.2.70.0080.00017.50
8.2.60.0050.00317.80
8.2.50.0040.00418.07
8.2.40.0040.00417.93
8.2.30.0080.00017.97
8.2.20.0040.00417.56
8.2.10.0070.00017.64
8.2.00.0060.00317.61
8.1.280.0100.00325.92
8.1.270.0050.00324.66
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0090.00022.46
8.1.230.0080.00320.97
8.1.220.0050.00317.74
8.1.210.0070.00418.85
8.1.200.0100.00017.10
8.1.190.0000.00717.41
8.1.180.0030.00618.10
8.1.170.0060.00318.84
8.1.160.0060.00318.82
8.1.150.0040.00418.51
8.1.140.0040.00417.27
8.1.130.0050.00217.77
8.1.120.0000.00817.27
8.1.110.0040.00417.26
8.1.100.0000.00717.22
8.1.90.0000.00717.40
8.1.80.0050.00317.25
8.1.70.0040.00717.34
8.1.60.0030.00617.37
8.1.50.0000.00817.48
8.1.40.0040.00417.53
8.1.30.0040.00417.48
8.1.20.0000.00717.52
8.1.10.0000.00717.53
8.1.00.0030.00517.51
8.0.300.0080.00020.03
8.0.290.0040.00416.63
8.0.280.0070.00018.41
8.0.270.0030.00317.11
8.0.260.0040.00416.89
8.0.250.0000.00916.97
8.0.240.0000.00816.82
8.0.230.0000.00716.96
8.0.220.0030.00616.96
8.0.210.0000.00716.80
8.0.200.0060.00016.86
8.0.190.0050.00316.86
8.0.180.0070.00416.91
8.0.170.0080.00016.92
8.0.160.0030.00317.04
8.0.150.0000.00816.93
8.0.140.0060.00316.86
8.0.130.0060.00013.34
8.0.120.0000.00716.89
8.0.110.0040.00416.81
8.0.100.0020.00517.03
8.0.90.0040.00416.90
8.0.80.0110.00416.93
8.0.70.0040.00416.95
8.0.60.0040.00416.73
8.0.50.0040.00416.86
8.0.30.0120.01117.02
8.0.20.0080.01017.25
8.0.10.0000.00716.86
8.0.00.0090.00816.59
7.4.330.0030.00312.95
7.4.320.0000.00616.41
7.4.300.0090.00016.47
7.4.290.0040.00416.57
7.4.280.0070.00016.48
7.4.270.0030.00316.48
7.4.260.0060.00013.30
7.4.250.0030.00616.58
7.4.240.0030.00316.60
7.4.230.0030.00316.65
7.4.220.0150.00816.51
7.4.210.0070.00916.49
7.4.200.0000.00716.36
7.4.190.0000.00716.38
7.4.160.0170.00016.48
7.4.150.0110.00716.63
7.4.140.0100.00816.54
7.4.130.0100.00716.49
7.4.120.0050.01216.43
7.4.110.0110.01216.39
7.4.100.0080.00816.52
7.4.90.0100.01016.59
7.4.80.0060.01219.39
7.4.70.0170.00316.48
7.4.60.0090.00616.33
7.4.50.0030.00816.10
7.4.40.0030.00616.46
7.4.30.0060.00916.51
7.4.10.0090.00914.96
7.4.00.0060.01114.87
7.3.330.0000.00613.23
7.3.320.0000.00613.14
7.3.310.0040.00416.43
7.3.300.0000.00716.28
7.3.290.0090.00616.25
7.3.280.0090.00716.30
7.3.270.0110.01516.59
7.3.260.0090.01516.64
7.3.250.0130.00816.27
7.3.240.0150.00916.37
7.3.230.0000.01616.39
7.3.210.0120.00616.58
7.3.200.0160.00316.50
7.3.190.0100.00716.42
7.3.180.0070.01016.19
7.3.170.0110.00716.43
7.3.160.0100.00916.60
7.3.130.0090.00914.71
7.3.120.0070.00914.63
7.3.110.0080.00814.70
7.3.100.0030.01014.47
7.3.90.0050.00514.66
7.3.80.0110.00715.09
7.3.70.0070.00714.80
7.3.60.0040.01214.76
7.3.50.0030.01314.82
7.3.40.0060.00314.86
7.3.30.0110.00314.63
7.3.20.0090.00616.72
7.3.10.0070.00616.39
7.3.00.0020.01116.37
7.2.330.0070.01116.48
7.2.320.0170.00616.64
7.2.310.0150.00616.27
7.2.300.0060.01116.40
7.2.290.0100.00716.29
7.2.260.0060.01214.61
7.2.250.0060.01315.09
7.2.240.0120.00614.93
7.2.230.0030.01615.17
7.2.220.0030.01515.07
7.2.210.0060.00914.84
7.2.200.0090.00314.80
7.2.190.0030.01015.05
7.2.180.0000.01714.83
7.2.170.0040.01114.69
7.2.160.0030.00614.94
7.2.150.0030.01416.50
7.2.140.0130.00316.58
7.2.130.0040.01116.87
7.2.120.0090.00616.87
7.2.110.0090.00616.81
7.2.100.0000.00916.71
7.2.90.0120.00316.83
7.2.80.0020.01316.40
7.2.70.0040.01116.74
7.2.60.0080.00716.77
7.2.50.0120.00416.67
7.2.40.0000.01116.85
7.2.30.0000.01616.88
7.2.20.0030.01016.82
7.2.10.0060.01016.52
7.2.00.0040.00717.92
7.1.330.0100.00315.62
7.1.320.0040.01115.70
7.1.310.0040.00815.71
7.1.300.0100.00715.65
7.1.290.0030.00715.54
7.1.280.0060.00815.32
7.1.270.0040.00715.19
7.1.260.0090.00415.55
7.1.250.0060.00915.53
7.1.240.0070.01015.75
7.1.230.0030.00515.58
7.1.220.0070.00315.68
7.1.210.0080.00815.61
7.1.200.0050.00615.60
7.1.190.0070.00715.62
7.1.180.0080.00615.61
7.1.170.0030.01015.52
7.1.160.0060.00615.52
7.1.150.0030.00915.57
7.1.140.0000.01315.61
7.1.130.0060.00615.62
7.1.120.0030.00815.79
7.1.110.0070.00715.72
7.1.100.0030.01016.73
7.1.90.0040.00415.61
7.1.80.0030.00715.74
7.1.70.0040.00716.22
7.1.60.0070.01317.45
7.1.50.0050.01216.18
7.1.40.0060.00315.68
7.1.30.0100.00715.70
7.1.20.0030.00715.57
7.1.10.0040.01115.38
7.1.00.0070.01918.88
7.0.330.0000.01215.18
7.0.320.0090.00315.26
7.0.310.0040.00415.30
7.0.300.0030.01015.17
7.0.290.0070.00715.05
7.0.280.0110.00015.12
7.0.270.0000.01015.22
7.0.260.0000.01015.19
7.0.250.0030.01314.93
7.0.240.0100.00315.46
7.0.230.0040.00415.46
7.0.220.0060.00315.30
7.0.210.0000.01515.34
7.0.200.0040.01216.09
7.0.190.0060.00315.32
7.0.180.0120.00315.08
7.0.170.0100.00315.28
7.0.160.0060.00315.17
7.0.150.0070.00715.43
7.0.140.0040.03818.74
7.0.130.0100.00315.36
7.0.120.0120.03518.72
7.0.110.0000.01615.41
7.0.100.0000.00815.33
7.0.90.0060.00615.11
7.0.80.0070.00715.41
7.0.70.0100.00615.26
7.0.60.0050.04717.59
7.0.50.0050.04716.64
7.0.40.0100.04015.59
7.0.30.0030.03515.66
7.0.20.0070.02515.59
7.0.10.0050.04215.64
7.0.00.0090.02015.51
5.6.400.0030.00914.21
5.6.390.0120.00314.23
5.6.380.0070.00713.91
5.6.370.0030.01014.01
5.6.360.0000.00914.21
5.6.350.0130.00014.27
5.6.340.0000.01313.85
5.6.330.0030.00514.24
5.6.320.0000.01114.25
5.6.310.0100.00714.38
5.6.300.0070.00314.42
5.6.290.0030.00514.23
5.6.280.0040.04017.68
5.6.270.0070.01114.57
5.6.260.0070.01014.17
5.6.250.0000.01113.96
5.6.240.0150.00013.84
5.6.230.0100.00014.14
5.6.220.0070.00714.06
5.6.210.0080.04217.32
5.6.200.0020.05016.18
5.6.190.0070.04216.13
5.6.180.0020.04716.12
5.6.170.0080.04316.26
5.6.160.0100.04016.11
5.6.150.0030.03916.18
5.6.140.0100.03316.02
5.6.130.0050.04516.15
5.6.120.0020.04816.25
5.6.110.0050.04516.22
5.6.100.0050.03316.03
5.6.90.0020.04716.18
5.6.80.0020.03015.79
5.6.70.0090.03815.76
5.6.60.0050.04415.76
5.6.50.0030.03515.84
5.6.40.0020.03115.68
5.6.30.0150.03515.83
5.6.20.0050.03915.76
5.6.10.0050.02415.74
5.6.00.0100.03515.82
5.5.380.0030.00914.16
5.5.370.0070.00314.09
5.5.360.0060.00313.89
5.5.350.0130.03217.36
5.5.340.0070.04515.87
5.5.330.0050.03315.92
5.5.320.0050.04316.06
5.5.310.0100.03815.82
5.5.300.0070.04216.06
5.5.290.0080.04115.94
5.5.280.0110.03516.09
5.5.270.0100.04216.09
5.5.260.0080.03715.86
5.5.250.0070.04315.97
5.5.240.0040.02615.56
5.5.230.0100.02715.62
5.5.220.0020.04515.65
5.5.210.0080.03815.64
5.5.200.0060.04315.55
5.5.190.0080.03115.68
5.5.180.0060.04415.66
5.5.170.0110.00414.14
5.5.160.0070.04315.67
5.5.150.0050.03215.60
5.5.140.0070.04015.66
5.5.130.0050.02215.55
5.5.120.0000.03315.57
5.5.110.0050.04315.60
5.5.100.0050.04015.65
5.5.90.0090.04415.71
5.5.80.0080.03415.49
5.5.70.0000.03415.67
5.5.60.0050.04215.47
5.5.50.0120.03815.50
5.5.40.0070.03615.49
5.5.30.0070.03915.39
5.5.20.0040.03715.48
5.5.10.0050.04415.71
5.5.00.0050.02715.63
5.4.450.0060.04015.06
5.4.440.0050.04315.06
5.4.430.0070.02814.99
5.4.420.0050.04215.12
5.4.410.0050.03814.79
5.4.400.0040.02314.91
5.4.390.0050.04214.67
5.4.380.0050.03014.79
5.4.370.0060.02314.69
5.4.360.0070.03514.81
5.4.350.0080.04214.83
5.4.340.0080.03014.86
5.4.330.0050.00510.70
5.4.320.0090.02314.83
5.4.310.0090.03214.83
5.4.300.0050.02514.78
5.4.290.0050.03414.95
5.4.280.0050.04014.67
5.4.270.0060.03514.71
5.4.260.0060.03514.74
5.4.250.0020.03114.61
5.4.240.0050.04414.72
5.4.230.0070.04114.99
5.4.220.0070.02414.77
5.4.210.0160.03214.78
5.4.200.0090.04214.81
5.4.190.0110.03614.70
5.4.180.0040.03614.83
5.4.170.0060.03814.81
5.4.160.0030.02614.77
5.4.150.0100.02015.01
5.4.140.0070.02013.56
5.4.130.0030.04313.62
5.4.120.0060.03313.42
5.4.110.0030.02513.52
5.4.100.0030.03413.49
5.4.90.0050.03713.52
5.4.80.0120.02213.50
5.4.70.0100.03213.61
5.4.60.0050.03513.55
5.4.50.0050.03513.57
5.4.40.0070.02513.54
5.4.30.0080.03413.41
5.4.20.0070.01913.54
5.4.10.0050.02413.44
5.4.00.0070.03713.23
5.3.290.0070.03812.51
5.3.280.0100.03812.46
5.3.270.0100.03012.44
5.3.260.0040.04412.45
5.3.250.0050.03912.45
5.3.240.0100.03712.45
5.3.230.0050.04112.40
5.3.220.0050.02312.44
5.3.210.0020.04012.43
5.3.200.0020.02512.42
5.3.190.0080.02712.45
5.3.180.0000.03012.41
5.3.170.0030.02812.38
5.3.160.0050.02912.49
5.3.150.0070.02512.37
5.3.140.0030.02512.43
5.3.130.0030.03512.43
5.3.120.0020.02912.41
5.3.110.0030.02512.34
5.3.100.0090.03512.12
5.3.90.0100.03712.10
5.3.80.0010.02812.17
5.3.70.0030.04012.17
5.3.60.0030.03912.10
5.3.50.0030.03012.02
5.3.40.0050.04212.03
5.3.30.0050.02312.10
5.3.20.0050.02311.98
5.3.10.0050.04311.97
5.3.00.0060.02411.96
5.2.170.0030.04711.15
5.2.160.0100.03311.30
5.2.150.0030.05011.30
5.2.140.0000.03310.98
5.2.130.0030.03011.04
5.2.120.0070.02710.94
5.2.110.0030.05711.10
5.2.100.0030.03711.10
5.2.90.0100.03711.10
5.2.80.0100.05011.09
5.2.70.0000.06311.07
5.2.60.0100.04711.05
5.2.50.0170.05311.00
5.2.40.0030.05010.93
5.2.30.0030.04710.96
5.2.20.0000.04310.97
5.2.10.0030.03010.81
5.2.00.0030.03010.73
5.1.60.0070.05010.04
5.1.50.0000.0339.97
5.1.40.0000.0279.82
5.1.30.0030.02710.19
5.1.20.0000.03010.37
5.1.10.0000.04310.15
5.1.00.0030.0479.91
5.0.50.0030.0339.33
5.0.40.0000.0479.33
5.0.30.0030.0609.33
5.0.20.0030.0439.33
5.0.10.0030.0279.33
5.0.00.0030.0439.33
4.4.90.0030.0309.33
4.4.80.0070.0309.33
4.4.70.0030.0179.33
4.4.60.0000.0209.33
4.4.50.0000.0379.33
4.4.40.0100.0339.33
4.4.30.0000.0179.33
4.4.20.0030.0379.33
4.4.10.0000.0379.33
4.4.00.0000.0309.33
4.3.110.0030.0339.33
4.3.100.0000.0309.33
4.3.90.0000.0379.33
4.3.80.0000.0409.33
4.3.70.0000.0209.33
4.3.60.0030.0139.33
4.3.50.0070.0109.33
4.3.40.0000.0539.33
4.3.30.0070.0279.33
4.3.20.0070.0339.33
4.3.10.0000.0339.33
4.3.00.0000.0239.33

preferences:
46.32 ms | 401 KiB | 5 Q