3v4l.org

run code in 300+ PHP versions simultaneously
<?php # build the API URL to call $params = array( 'api_key'=> "fd3fabe4e9d94ca725df1de71b8d285b", 'method'=> "flickr.photos.search", 'tags'=> "torre de belem", 'format'=> "json", ); $encoded_params = array(); foreach ($params as $k => $v){ $encoded_params[] = urlencode($k).'='.urlencode($v); } # call the API and decode the response $url = "http://api.flickr.com/services/rest/?".implode('&', $encoded_params); print_r($url); $rsp = file_get_contents($url); $rsp_obj = unserialize($rsp); # display the photo title (or an error if it failed) if ($rsp_obj['stat'] == 'ok'){ $photo_title = $rsp_obj['photo']['title']['_content']; echo "Title is $photo_title!"; }else{ echo "Call failed!"; }

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.0120.00918.80
8.3.50.0050.01221.39
8.3.40.0040.01119.21
8.3.30.0110.00419.50
8.3.20.0000.00820.57
8.3.10.0030.00522.47
8.3.00.0000.00822.48
8.2.180.0160.00016.88
8.2.170.0130.00622.96
8.2.160.0110.00419.50
8.2.150.0080.00024.18
8.2.140.0050.00324.66
8.2.130.0150.00026.16
8.2.120.0050.00319.63
8.2.110.0090.00022.42
8.2.100.0120.00019.89
8.2.90.0050.00319.27
8.2.80.0000.00818.17
8.2.70.0060.00317.62
8.2.60.0030.00718.18
8.2.50.0000.00918.07
8.2.40.0000.00820.19
8.2.30.0000.00818.24
8.2.20.0050.00317.86
8.2.10.0040.00417.84
8.2.00.0040.00417.82
8.1.280.0110.00725.92
8.1.270.0030.00622.39
8.1.260.0050.00326.35
8.1.250.0030.00628.09
8.1.240.0050.00523.93
8.1.230.0030.00919.25
8.1.220.0040.00418.00
8.1.210.0050.00318.77
8.1.200.0000.00917.47
8.1.190.0000.00817.55
8.1.180.0080.00018.95
8.1.170.0080.00018.75
8.1.160.0040.00422.29
8.1.150.0000.00718.86
8.1.140.0040.00419.06
8.1.130.0030.00718.03
8.1.120.0000.00817.52
8.1.110.0000.00817.60
8.1.100.0070.00017.53
8.1.90.0020.00517.71
8.1.80.0030.00517.44
8.1.70.0070.00017.57
8.1.60.0090.00017.79
8.1.50.0000.00717.67
8.1.40.0040.00417.64
8.1.30.0030.00517.84
8.1.20.0050.00317.93
8.1.10.0040.00417.71
8.1.00.0040.00417.58
8.0.300.0070.00018.77
8.0.290.0070.00017.30
8.0.280.0000.00818.69
8.0.270.0060.00317.60
8.0.260.0080.00017.15
8.0.250.0000.00717.24
8.0.240.0040.00417.20
8.0.230.0000.00817.19
8.0.220.0070.00017.13
8.0.210.0000.00817.12
8.0.200.0070.00017.27
8.0.190.0060.00317.18
8.0.180.0040.00417.16
8.0.170.0080.00017.13
8.0.160.0000.00817.12
8.0.150.0000.00717.21
8.0.140.0040.00417.10
8.0.130.0030.00313.72
8.0.120.0030.00517.30
8.0.110.0000.00817.39
8.0.100.0080.00017.10
8.0.90.0030.00617.23
8.0.80.0070.01317.29
8.0.70.0040.00417.25
8.0.60.0040.00417.19
8.0.50.0040.00417.23
8.0.30.0150.00617.35
8.0.20.0100.01117.47
8.0.10.0030.00517.32
8.0.00.0140.00717.03
7.4.330.0060.00015.29
7.4.320.0030.00316.67
7.4.300.0030.00316.74
7.4.290.0080.00016.79
7.4.280.0040.00816.64
7.4.270.0070.00016.67
7.4.260.0000.00716.76
7.4.250.0040.00416.93
7.4.240.0070.00116.90
7.4.230.0030.00316.65
7.4.220.0090.01616.80
7.4.210.0090.00916.89
7.4.200.0080.00016.73
7.4.190.0000.00816.92
7.4.160.0110.00616.67
7.4.150.0240.00017.40
7.4.140.0130.00917.86
7.4.130.0090.01416.75
7.4.120.0110.00816.82
7.4.110.0120.00616.82
7.4.100.0130.00616.83
7.4.90.0060.01316.67
7.4.80.0090.00919.39
7.4.70.0040.01516.65
7.4.60.0030.01516.73
7.4.50.0050.00016.65
7.4.40.0060.00922.77
7.4.30.0150.00616.95
7.4.00.0120.00315.07
7.3.330.0000.00513.40
7.3.320.0060.00013.70
7.3.310.0050.00316.68
7.3.300.0040.00416.70
7.3.290.0100.00716.70
7.3.280.0090.01116.56
7.3.270.0130.00917.40
7.3.260.0070.01516.68
7.3.250.0070.01216.53
7.3.240.0030.01216.66
7.3.230.0110.00716.82
7.3.210.0000.01816.78
7.3.200.0150.00319.39
7.3.190.0120.00616.66
7.3.180.0110.00616.77
7.3.170.0080.00816.81
7.3.160.0130.00316.55
7.3.120.0030.01415.28
7.3.10.0060.00917.08
7.3.00.0000.01317.06
7.2.330.0130.01316.67
7.2.320.0030.01516.76
7.2.310.0090.01616.64
7.2.300.0080.00816.97
7.2.290.0080.00817.07
7.2.130.0070.00717.27
7.2.120.0040.01217.37
7.2.110.0070.00717.04
7.2.100.0030.01016.98
7.2.90.0070.01016.94
7.2.80.0060.00617.20
7.2.70.0000.00917.25
7.2.60.0050.01017.05
7.2.50.0100.01017.31
7.2.40.0030.00717.29
7.2.30.0040.01217.25
7.2.20.0070.00617.20
7.2.10.0040.01217.34
7.2.00.0120.00218.39
7.1.250.0040.00815.92
7.1.240.0100.00315.92
7.1.230.0090.00616.22
7.1.220.0040.01116.15
7.1.210.0070.00316.05
7.1.200.0060.00716.10
7.1.190.0090.00316.20
7.1.180.0060.01215.77
7.1.170.0070.00716.16
7.1.160.0100.00015.86
7.1.150.0040.00716.18
7.1.140.0040.01115.96
7.1.130.0040.01116.05
7.1.120.0210.00716.18
7.1.110.0030.01216.05
7.1.100.0030.00817.32
7.1.90.0030.00715.90
7.1.80.0090.00615.68
7.1.70.0050.00616.87
7.1.60.0140.00417.80
7.1.50.0120.00616.78
7.1.40.0000.01315.92
7.1.30.0000.01416.09
7.1.20.0090.00916.17
7.1.10.0090.00316.06
7.1.00.0070.04519.37
7.0.330.0000.01315.78
7.0.320.0090.00615.64
7.0.310.0000.01215.39
7.0.300.0090.00615.80
7.0.290.0100.00715.77
7.0.280.0060.00615.59
7.0.270.0060.00615.63
7.0.260.0000.00915.75
7.0.250.0130.00315.67
7.0.240.0080.00415.69
7.0.230.0000.01515.75
7.0.220.0090.00915.62
7.0.210.0040.01115.70
7.0.200.0050.00516.38
7.0.190.0060.00915.54
7.0.180.0030.01015.46
7.0.170.0090.00315.75
7.0.160.0030.00915.73
7.0.150.0080.00415.62
7.0.140.0080.03819.03
7.0.130.0120.00015.65
7.0.120.0040.00815.67
7.0.110.0030.00715.48
7.0.100.0040.00815.61
7.0.90.0120.00615.80
7.0.80.0060.00615.74
7.0.70.0040.00715.63
7.0.60.0130.01717.92
7.0.50.0070.04516.96
7.0.40.0070.03916.93
7.0.30.0230.02017.01
7.0.20.0150.03216.97
7.0.10.0130.02817.15
7.0.00.0030.02517.00
5.6.380.0060.00914.86
5.6.370.0040.00814.73
5.6.360.0090.00914.79
5.6.350.0030.00714.80
5.6.340.0060.00914.73
5.6.330.0030.01014.87
5.6.320.0070.00314.74
5.6.310.0110.00014.61
5.6.300.0030.01014.96
5.6.290.0030.01014.86
5.6.280.0080.03718.10
5.6.270.0000.00914.60
5.6.260.0080.00814.48
5.6.250.0120.00914.84
5.6.240.0030.01014.78
5.6.230.0100.00714.69
5.6.220.0060.00914.91
5.6.210.0050.03717.67
5.6.200.0060.04116.68
5.6.190.0030.03417.92
5.6.180.0160.03817.90
5.6.170.0030.03517.77
5.6.160.0090.04017.76
5.6.150.0080.04316.46
5.6.140.0060.04616.76
5.6.130.0070.04116.42
5.6.120.0180.04018.20
5.6.110.0050.04717.97
5.6.100.0070.04217.92
5.6.90.0110.02517.99
5.6.80.0080.04217.84
5.6.70.0130.00614.74
5.6.60.0090.00614.63
5.6.50.0030.00914.46
5.6.40.0150.00414.69
5.6.30.0130.00314.46
5.6.20.0180.00014.63
5.6.10.0130.00014.73
5.6.00.0000.01014.61
5.5.380.0040.01111.71
5.5.370.0000.01111.61
5.5.360.0040.00911.29
5.5.350.0140.03616.19
5.5.340.0040.03014.94
5.5.330.0070.04316.24
5.5.320.1440.02716.10
5.5.310.0270.02816.08
5.5.300.0050.03714.86
5.5.290.0070.04015.03
5.5.280.0100.03816.50
5.5.270.0050.04016.44
5.5.260.0140.04216.29
5.5.250.0000.02516.37
5.5.240.0130.03616.17
5.5.230.0060.00011.25
5.5.220.0090.00611.52
5.5.210.0000.01211.46
5.5.200.0030.00311.50
5.5.190.0050.00511.69
5.5.180.0030.00311.42
5.5.170.0030.00311.52
5.5.160.0030.00911.50
5.5.150.0120.00011.75
5.5.140.0090.00311.30
5.5.130.0000.00911.28
5.5.120.0080.00011.59
5.5.110.0110.00411.23
5.5.100.0000.01111.46
5.5.90.0030.00811.35
5.5.80.0040.01111.58
5.5.70.0000.00711.17
5.5.60.0000.00911.37
5.5.50.0060.00911.26
5.5.40.0000.00611.24
5.5.30.0090.00311.53
5.5.20.0080.00511.63
5.5.10.0060.00811.68
5.5.00.0040.00711.61
5.4.450.0520.02515.47
5.4.440.0400.03515.58
5.4.430.0460.03015.43
5.4.420.0060.03315.64
5.4.410.0090.02815.36
5.4.400.0120.03815.29
5.4.390.0090.02915.03
5.4.380.0090.03415.08
5.4.370.0070.02315.22
5.4.360.0080.01914.96
5.4.350.0090.02211.81
5.4.340.0050.02211.63
5.4.330.0040.00810.97
5.4.320.0080.01912.01
5.4.310.0070.02112.16
5.4.300.0050.02312.12
5.4.290.0080.02111.96
5.4.280.0110.02312.07
5.4.270.0090.03412.02
5.4.260.0120.02711.83
5.4.250.0090.02912.02
5.4.240.0090.03411.79
5.4.230.0080.03511.95
5.4.220.0080.04411.96
5.4.210.0100.03412.09
5.4.200.0090.02612.04
5.4.190.0080.02411.98
5.4.180.0090.02011.92
5.4.170.0060.02211.81
5.4.160.0080.02611.99
5.4.150.0070.02411.98
5.4.140.0060.02211.79
5.4.130.0050.02411.80
5.4.120.0040.02311.80
5.4.110.0060.02011.92
5.4.100.0050.02211.70
5.4.90.0080.02111.75
5.4.80.0070.02211.81
5.4.70.0080.01811.81
5.4.60.0040.02011.77
5.4.50.0030.02511.68
5.4.40.0060.02211.66
5.4.30.0080.02011.75
5.4.20.0060.02411.74
5.4.10.0040.03711.67
5.4.00.0060.03511.47
5.3.290.0080.02011.88
5.3.280.0100.02511.65
5.3.270.0070.03011.85
5.3.260.0050.02911.84
5.3.250.0050.04411.84
5.3.240.0080.02011.63
5.3.230.0050.02911.77
5.3.220.0100.01911.77
5.3.210.0070.02111.75
5.3.200.0040.02411.62
5.3.190.0060.02211.80
5.3.180.0110.03011.74
5.3.170.0090.02311.88
5.3.160.0080.02511.75
5.3.150.0080.02211.75
5.3.140.0060.02211.69
5.3.130.0100.03111.82
5.3.120.0070.02211.68
5.3.110.0050.02111.71
5.3.100.0070.02111.56
5.3.90.0050.02211.53
5.3.80.0060.02211.48
5.3.70.0050.02211.45
5.3.60.0060.02711.35
5.3.50.0040.02611.46
5.3.40.0060.02311.43
5.3.30.0060.02011.34
5.3.20.0070.02011.15
5.3.10.0050.02311.15
5.3.00.0030.02311.02
5.2.170.0080.0199.63
5.2.160.0020.0219.63
5.2.150.0070.0189.63
5.2.140.0030.0209.62
5.2.130.0020.0189.60
5.2.120.0040.0199.60
5.2.110.0060.0199.61
5.2.100.0050.0169.60
5.2.90.0070.0159.61
5.2.80.0070.0149.60
5.2.70.0020.0219.60
5.2.60.0040.0249.58
5.2.50.0040.0239.56
5.2.40.0040.0219.55
5.2.30.0040.0209.54
5.2.20.0050.0229.53
5.2.10.0050.0209.48
5.2.00.0020.0239.41
5.1.60.0060.0139.05
5.1.50.0050.0149.06
5.1.40.0040.0169.05
5.1.30.0040.0149.22
5.1.20.0070.0219.23
5.1.10.0060.0179.10
5.1.00.0050.0189.10
5.0.50.0010.0168.34
5.0.40.0030.0138.27
5.0.30.0020.0228.17
5.0.20.0030.0178.15
5.0.10.0050.0168.14
5.0.00.0020.0228.13
4.4.90.0050.0137.34
4.4.80.0040.0137.33
4.4.70.0010.0147.33
4.4.60.0020.0157.33
4.4.50.0010.0157.34
4.4.40.0020.0207.33
4.4.30.0040.0087.33
4.4.20.0040.0147.37
4.4.10.0030.0127.37
4.4.00.0020.0167.35
4.3.110.0020.0117.30
4.3.100.0020.0117.29
4.3.90.0030.0127.28
4.3.80.0030.0157.28
4.3.70.0020.0117.28
4.3.60.0030.0097.27
4.3.50.0020.0117.27
4.3.40.0010.0177.26
4.3.30.0040.0106.66
4.3.20.0020.0116.66
4.3.10.0010.0126.63
4.3.00.0050.01011.54

preferences:
40.1 ms | 401 KiB | 5 Q