3v4l.org

run code in 300+ PHP versions simultaneously
<html> <head> <style> body{ background-color: #95a5a6; } </style> <title> Random Cats </title> <meta charset="utf-8" /> <!-- Latest compiled and minified CSS --> <link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css"> <!-- Optional theme --> <link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap-theme.min.css"> <!-- Latest compiled and minified JavaScript --> <script src="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"> </script> <style> body{ background-color: #95a5a6; }.img-thumbnail{ -moz-box-shadow: 3px 3px 5px 6px grey; -webkit-box-shadow: 3px 3px 5px 6px grey; box-shadow: 3px 3px 5px 6px grey; } </style> </head> <body> <center> <h1> Random Cats *.* </h1> <?php $url = "http://thecatapi.com/api/images/get?format=xml&results_per_page=1"; $xml = simplexml_load_file($url); $xmlImg = $xml->data->images->image->url; $xmlImgSource = $xml->data->images->image->source_url; $source = $xmlImgsource; echo " <img src='$xmlImg' width='600px' class='img-thumbnail'> " ?> <br> <br> <div> <a href=" <?php echo $xmlImgSource ?> "> <button class="button"> Source </button> </a> <a href="/"> <button type="submit" class="button"> New Picture </button> </a> </div> <br> <p> Original made by Nihad Dizdarevic <br> TheCatAPI & XML </p> <a href="https://github.com/dizzyniho/TheCatsSite"> Fork this on GitHub </a> </center> </body> </html>

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.0150.00417.00
8.3.50.0100.01023.01
8.3.40.0060.00918.95
8.3.30.0110.00419.48
8.3.20.0050.00320.66
8.3.10.0000.00823.78
8.3.00.0130.00619.63
8.2.180.0000.01616.88
8.2.170.0110.00422.96
8.2.160.0070.01420.63
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0000.00826.16
8.2.120.0000.00821.27
8.2.110.0050.00522.59
8.2.100.0080.00418.09
8.2.90.0080.00019.30
8.2.80.0100.00017.97
8.2.70.0040.00417.88
8.2.60.0030.00518.05
8.2.50.0050.00318.07
8.2.40.0050.00320.32
8.2.30.0040.00418.31
8.2.20.0090.00018.03
8.2.10.0060.00318.33
8.2.00.0040.00418.15
8.1.280.0100.01325.92
8.1.270.0000.00924.02
8.1.260.0080.00026.35
8.1.250.0000.00828.09
8.1.240.0100.00024.12
8.1.230.0060.00619.22
8.1.220.0030.00517.91
8.1.210.0000.00818.77
8.1.200.0090.00017.38
8.1.190.0040.00417.25
8.1.180.0000.00918.10
8.1.170.0000.00918.95
8.1.160.0060.00322.30
8.1.150.0000.00919.04
8.1.140.0040.00417.63
8.1.130.0000.00718.14
8.1.120.0000.00817.66
8.1.110.0050.00317.64
8.1.100.0100.00017.44
8.1.90.0060.00317.72
8.1.80.0030.00617.67
8.1.70.0050.00317.61
8.1.60.0030.00617.84
8.1.50.0000.00817.75
8.1.40.0080.00017.71
8.1.30.0060.00317.74
8.1.20.0080.00017.80
8.1.10.0040.00417.62
8.1.00.0030.00517.50
8.0.300.0060.00318.77
8.0.290.0000.00917.13
8.0.280.0070.00018.67
8.0.270.0070.00017.52
8.0.260.0000.00717.50
8.0.250.0030.00417.29
8.0.240.0040.00417.23
8.0.230.0040.00417.09
8.0.220.0030.00317.20
8.0.210.0070.00017.23
8.0.200.0070.00017.31
8.0.190.0090.00417.32
8.0.180.0000.00817.27
8.0.170.0060.00317.20
8.0.160.0000.00817.21
8.0.150.0040.00417.15
8.0.140.0080.00017.24
8.0.130.0000.00913.68
8.0.120.0090.00017.23
8.0.110.0060.00317.25
8.0.100.0000.00817.09
8.0.90.0040.00417.18
8.0.80.0070.01017.24
8.0.70.0030.00617.11
8.0.60.0040.00417.10
8.0.50.0040.00417.22
8.0.30.0120.00917.26
8.0.20.0170.00617.52
8.0.10.0030.00517.14
8.0.00.0100.01017.12
7.4.330.0060.00015.00
7.4.320.0030.00316.90
7.4.300.0070.00016.86
7.4.290.0000.00716.88
7.4.280.0040.00416.65
7.4.270.0040.00416.70
7.4.260.0050.00316.88
7.4.250.0000.00816.96
7.4.240.0040.00416.82
7.4.230.0000.00716.73
7.4.220.0140.01516.92
7.4.210.0070.01016.84
7.4.200.0040.00416.87
7.4.160.0080.01516.85
7.4.150.0150.00617.40
7.4.140.0160.00617.86
7.4.130.0150.00716.85
7.4.120.0090.01216.92
7.4.110.0070.01917.00
7.4.100.0090.00916.67
7.4.90.0100.01016.82
7.4.80.0140.00719.39
7.4.70.0090.00916.86
7.4.60.0150.00616.92
7.4.50.0040.00416.89
7.4.40.0090.00916.69
7.4.30.0110.00716.68
7.4.10.0140.00615.47
7.4.00.0080.00915.24
7.3.330.0040.00413.56
7.3.320.0060.00013.59
7.3.310.0000.00716.46
7.3.300.0000.00716.64
7.3.290.0000.01516.67
7.3.280.0060.01016.61
7.3.270.0100.00917.40
7.3.260.0100.01016.86
7.3.250.0120.00516.72
7.3.240.0060.01316.90
7.3.230.0110.00816.91
7.3.210.0170.00316.67
7.3.200.0070.01119.39
7.3.190.0100.01316.71
7.3.180.0120.00616.59
7.3.170.0160.00416.67
7.3.160.0110.00716.71
7.3.130.0150.00415.13
7.3.120.0120.00715.19
7.3.110.0120.00614.99
7.3.100.0050.01015.10
7.3.90.0080.00814.99
7.3.80.0050.01315.21
7.3.70.0120.00415.17
7.3.60.0080.00815.00
7.3.50.0090.00515.15
7.3.40.0100.00515.07
7.3.30.0100.00615.00
7.3.20.0020.01316.93
7.3.10.0050.01016.76
7.3.00.0020.01216.99
7.2.330.0190.01117.04
7.2.320.0120.00616.58
7.2.310.0110.00816.92
7.2.300.0180.00016.51
7.2.290.0120.00616.91
7.2.260.0120.00315.26
7.2.250.0080.01115.02
7.2.240.0070.00815.34
7.2.230.0070.01115.37
7.2.220.0060.01315.38
7.2.210.0060.00815.41
7.2.200.0050.01115.21
7.2.190.0050.01015.37
7.2.180.0030.01415.38
7.2.170.0060.00715.31
7.2.160.0060.00915.16
7.2.150.0070.00817.00
7.2.140.0060.00917.10
7.2.130.0060.00617.04
7.2.120.0080.00617.18
7.2.110.0070.00717.07
7.2.100.0070.00717.21
7.2.90.0060.00917.25
7.2.80.0080.00817.28
7.2.70.0080.00517.28
7.2.60.0140.00817.06
7.2.50.0070.00717.22
7.2.40.0060.01117.12
7.2.30.0060.00817.34
7.2.20.0030.01016.94
7.2.10.0040.01017.15
7.2.00.0030.01217.00
7.1.330.0050.01215.93
7.1.320.0130.00516.23
7.1.310.0060.01016.15
7.1.300.0060.00716.09
7.1.290.0090.00516.01
7.1.280.0060.00515.75
7.1.270.0050.00815.84
7.1.260.0050.01216.04
7.1.250.0050.01116.03
7.1.240.0030.01116.11
7.1.230.0050.00616.12
7.1.220.0100.00516.16
7.1.210.0100.00315.99
7.1.200.0060.00615.99
7.1.190.0040.00916.11
7.1.180.0130.00316.04
7.1.170.0050.00815.99
7.1.160.0050.00816.15
7.1.150.0100.00316.10
7.1.140.0050.00816.08
7.1.130.0050.01016.03
7.1.120.0120.00315.92
7.1.110.0050.00816.14
7.1.100.0080.00416.13
7.1.90.0060.00716.00
7.1.80.0070.00716.06
7.1.70.0080.00816.45
7.1.60.0080.00717.17
7.1.50.0070.01022.36
7.1.40.0030.00815.81
7.1.30.0090.00316.09
7.1.20.0060.00815.94
7.1.10.0010.01016.06
7.1.00.0050.03318.29
7.0.330.0070.00715.74
7.0.320.0040.00815.67
7.0.310.0030.01215.60
7.0.300.0040.00715.64
7.0.290.0050.01115.78
7.0.280.0080.00615.65
7.0.270.0100.00415.65
7.0.260.0030.00915.73
7.0.250.0040.01115.61
7.0.240.0050.00815.75
7.0.230.0040.00715.58
7.0.220.0070.00715.80
7.0.210.0030.01115.63
7.0.200.0020.00816.18
7.0.190.0090.00315.64
7.0.180.0070.00615.79
7.0.170.0100.00315.59
7.0.160.0060.00715.66
7.0.150.0030.00815.56
7.0.140.0100.02417.98
7.0.130.0040.00615.51
7.0.120.0040.00915.76
7.0.110.0040.00715.76
7.0.100.0100.00515.38
7.0.90.0020.00915.73
7.0.80.0050.00815.77
7.0.70.0030.01015.71
7.0.60.0080.03117.19
7.0.50.0090.02316.68
7.0.40.0100.03116.47
7.0.30.0090.01916.41
7.0.20.0160.02416.39
7.0.10.0030.02516.38
7.0.00.0080.03316.44
5.6.400.0090.00214.63
5.6.390.0050.01014.74
5.6.380.0050.00914.55
5.6.370.0030.01014.81
5.6.360.0030.00914.80
5.6.350.0060.00714.79
5.6.340.0090.00314.80
5.6.330.0020.01414.72
5.6.320.0020.01214.56
5.6.310.0070.00814.77
5.6.300.0050.00614.64
5.6.290.0040.01114.69
5.6.280.0030.02916.97
5.6.270.0070.00714.75
5.6.260.0070.00714.59
5.6.250.0030.00914.65
5.6.240.0080.00614.68
5.6.230.0060.00814.70
5.6.220.0040.01014.77
5.6.210.0100.02916.73
5.6.200.0050.02016.04
5.6.190.0080.03316.90
5.6.180.0130.03016.84
5.6.170.0130.01516.74
5.6.160.0030.02616.70
5.6.150.0040.03115.99
5.6.140.0030.02416.02
5.6.130.0080.02115.97
5.6.120.0080.02616.91
5.6.110.0080.03116.96
5.6.100.0090.02516.96
5.6.90.0040.03016.97
5.6.80.0020.02816.74
5.6.70.1230.01716.72
5.6.60.0030.01114.62
5.6.50.0050.00914.58
5.6.40.0040.00814.74
5.6.30.0070.00814.76
5.6.20.0090.00714.62
5.6.10.0060.01114.64
5.6.00.0050.00714.71
5.5.380.0100.00614.58
5.5.370.0050.01014.80
5.5.360.0060.00914.75
5.5.350.0120.03216.62
5.5.340.0020.02415.92
5.5.330.0060.03416.72
5.5.320.0110.01916.68
5.5.310.0130.01816.67
5.5.300.0090.02215.82
5.5.290.0070.02016.02
5.5.280.0070.03016.83
5.5.270.0100.01416.96
5.5.260.0080.03416.97
5.5.250.0080.02116.66
5.5.240.0080.02916.58
5.5.230.0080.00314.45
5.5.220.0080.00414.67
5.5.210.0060.01014.74
5.5.200.0050.00814.69
5.5.190.0040.01014.77
5.5.180.0060.00614.57
5.5.170.0090.00514.56
5.5.160.0100.00514.62
5.5.150.0030.01014.73
5.5.140.0030.00914.58
5.5.130.0060.00614.68
5.5.120.0020.01614.72
5.5.110.0060.00914.70
5.5.100.0070.00814.73
5.5.90.0080.00614.62
5.5.80.0050.01014.66
5.5.70.0060.00814.72
5.5.60.0050.01014.68
5.5.50.0070.00914.68
5.5.40.0100.00814.66
5.5.30.0080.00714.54
5.5.20.0100.00514.75
5.5.10.0050.01014.77
5.5.00.0070.01014.50
5.4.450.0290.02415.27
5.4.440.0270.02415.34
5.4.430.0280.02115.35
5.4.420.0090.02215.32
5.4.410.0040.02415.23
5.4.400.0080.02615.22
5.4.390.0050.02315.20
5.4.380.0070.02915.22
5.4.370.0030.02415.10
5.4.360.0020.02615.21
5.4.350.0060.01812.78
5.4.340.0040.01812.79
5.4.330.0000.00713.09
5.4.320.0070.01512.95
5.4.310.0060.01712.93
5.4.300.0010.01812.89
5.4.290.0050.01613.03
5.4.280.0050.01612.99
5.4.270.0090.01612.94
5.4.260.0030.01912.92
5.4.250.0070.01512.93
5.4.240.0040.01912.84
5.4.230.0020.02012.87
5.4.220.0070.01412.93
5.4.210.0040.01512.95
5.4.200.0070.01413.00
5.4.190.0020.02012.80
5.4.180.0060.01512.92
5.4.170.0050.01912.91
5.4.160.0070.01312.78
5.4.150.0040.01712.82
5.4.140.0040.01712.80
5.4.130.0080.01512.71
5.4.120.0060.01612.81
5.4.110.0040.01612.76
5.4.100.0050.01712.79
5.4.90.0070.01612.78
5.4.80.0050.01612.81
5.4.70.0080.01712.80
5.4.60.0090.01412.82
5.4.50.0060.01712.73
5.4.40.0070.01512.76
5.4.30.0070.01812.72
5.4.20.0070.01712.82
5.4.10.0050.01612.83
5.4.00.0060.01612.50
5.3.290.0060.03812.96
5.3.280.0090.03812.90
5.3.270.0060.03812.91
5.3.260.0040.04112.91
5.3.250.0060.04012.90
5.3.240.0090.03412.90
5.3.230.0070.03612.89
5.3.220.0110.03612.86
5.3.210.0050.03912.87
5.3.200.0090.03412.87
5.3.190.0080.03712.87
5.3.180.0070.03412.86
5.3.170.0090.03312.86
5.3.160.0050.03612.86
5.3.150.0070.04612.86
5.3.140.0040.03812.86
5.3.130.0070.03812.85
5.3.120.0080.03712.85
5.3.110.0040.04112.84
5.3.100.0030.04112.34
5.3.90.0060.03912.32
5.3.80.0050.03712.31
5.3.70.0050.03712.32
5.3.60.0070.03512.30
5.3.50.0070.03512.25
5.3.40.0050.03712.25
5.3.30.0060.03612.21
5.3.20.0050.03611.99
5.3.10.0100.03711.95
5.3.00.0040.03811.94
5.2.170.0050.0319.45
5.2.160.0030.0359.45
5.2.150.0040.0339.45
5.2.140.0050.0319.44
5.2.130.0060.0279.41
5.2.120.0060.0269.41
5.2.110.0080.0269.41
5.2.100.0030.0309.41
5.2.90.0060.0289.40
5.2.80.0050.0309.41
5.2.70.0040.0319.40
5.2.60.0040.0309.36
5.2.50.0090.0329.32
5.2.40.0050.0289.30
5.2.30.0050.0299.28
5.2.20.0060.0279.26
5.2.10.0080.0249.16
5.2.00.0030.0309.02
5.1.60.0050.0238.30
5.1.50.0050.0248.30
5.1.40.0060.0238.29
5.1.30.0050.0268.63
5.1.20.0060.0258.65
5.1.10.0030.0288.38
5.1.00.0030.0278.38
5.0.50.0050.0206.86
5.0.40.0060.0186.73
5.0.30.0040.0326.55
5.0.20.0030.0216.51
5.0.10.0030.0216.50
5.0.00.0040.0316.49
4.4.90.0010.0174.78
4.4.80.0030.0154.76
4.4.70.0030.0154.76
4.4.60.0020.0164.75
4.4.50.0050.0144.77
4.4.40.0000.0284.70
4.4.30.0030.0154.76
4.4.20.0020.0164.84
4.4.10.0030.0154.85
4.4.00.0030.0254.76
4.3.110.0020.0164.67
4.3.100.0040.0174.67
4.3.90.0060.0174.64
4.3.80.0010.0274.58
4.3.70.0030.0154.63
4.3.60.0030.0154.63
4.3.50.0050.0144.63
4.3.40.0010.0254.54
4.3.30.0010.0173.30
4.3.20.0020.0153.28
4.3.10.0030.0143.22
4.3.00.0130.0236.98

preferences:
50.58 ms | 401 KiB | 5 Q