3v4l.org

run code in 300+ PHP versions simultaneously
<?php $url = "http://api.giphy.com/v1/gifs/search?q=hello&api_key=dc6zaTOxFJmzC"; $content = file_get_contents($url); $json = json_decode($content); echo $json->images[0]->fixedheight->url[0]; ?>

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.00319.10
8.3.30.0040.01119.29
8.3.20.0050.00320.59
8.3.10.0030.00522.33
8.3.00.0040.00422.75
8.2.170.0150.00022.96
8.2.160.0070.01419.31
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0030.01026.16
8.2.120.0030.00519.61
8.2.110.0090.00020.60
8.2.100.0070.00718.22
8.2.90.0000.00819.30
8.2.80.0030.00518.05
8.2.70.0090.00017.88
8.2.60.0030.00518.28
8.2.50.0040.00418.07
8.2.40.0090.00020.13
8.2.30.0000.00718.34
8.2.20.0000.00817.87
8.2.10.0040.00418.06
8.2.00.0040.00418.00
8.1.270.0090.00022.34
8.1.260.0080.00026.35
8.1.250.0050.00328.09
8.1.240.0100.01024.21
8.1.230.0120.00019.33
8.1.220.0000.00817.91
8.1.210.0030.00618.77
8.1.200.0040.00417.38
8.1.190.0040.00417.54
8.1.180.0050.00320.61
8.1.170.0040.00418.73
8.1.160.0050.00322.25
8.1.150.0000.00718.69
8.1.140.0000.00717.61
8.1.130.0000.00717.96
8.1.120.0030.00317.59
8.1.110.0040.00417.56
8.1.100.0040.00417.61
8.1.90.0070.00017.50
8.1.80.0030.00317.50
8.1.70.0080.00017.54
8.1.60.0060.00317.61
8.1.50.0090.00017.55
8.1.40.0030.00517.60
8.1.30.0030.00517.63
8.1.20.0000.00917.71
8.1.10.0040.00417.82
8.1.00.0040.00417.54
8.0.300.0040.00418.77
8.0.290.0000.00717.30
8.0.280.0070.00318.82
8.0.270.0000.00717.52
8.0.260.0030.00317.20
8.0.250.0030.00317.13
8.0.240.0000.00817.14
8.0.230.0030.00317.16
8.0.220.0000.00717.04
8.0.210.0070.00016.96
8.0.200.0040.00417.05
8.0.190.0060.00317.26
8.0.180.0000.00716.98
8.0.170.0040.00417.19
8.0.160.0000.00817.03
8.0.150.0040.00417.11
8.0.140.0050.00317.06
8.0.130.0000.00613.64
8.0.120.0030.00517.17
8.0.110.0030.00617.23
8.0.100.0050.00217.08
8.0.90.0070.00017.17
8.0.80.0040.01617.09
8.0.70.0030.00517.11
8.0.60.0030.00517.19
8.0.50.0060.00317.13
8.0.30.0120.01217.29
8.0.20.0080.01217.56
8.0.10.0030.00617.23
8.0.00.0120.00916.85
7.4.330.0000.00515.00
7.4.320.0030.00316.70
7.4.300.0000.00716.73
7.4.290.0050.00316.64
7.4.280.0000.00716.63
7.4.270.0070.00016.81
7.4.260.0000.00716.63
7.4.250.0000.00816.87
7.4.240.0040.00416.84
7.4.230.0000.00716.80
7.4.220.0040.01516.78
7.4.210.0080.00716.87
7.4.200.0000.00716.56
7.4.190.0000.00716.72
7.4.160.0110.00616.92
7.4.150.0110.00717.40
7.4.140.0100.01317.86
7.4.130.0100.01116.70
7.4.120.0090.00916.80
7.4.110.0080.01116.68
7.4.100.0160.00516.74
7.4.90.0230.01716.70
7.4.80.0130.01019.39
7.4.70.0060.01216.84
7.4.60.0070.01016.87
7.4.50.0000.00916.62
7.4.40.0090.00622.77
7.4.30.0090.01016.84
7.4.00.0060.01215.41
7.3.330.0030.00313.39
7.3.320.0000.00613.35
7.3.310.0030.00616.61
7.3.300.0070.00016.59
7.3.290.0050.01016.59
7.3.280.0090.00916.51
7.3.270.0070.01017.40
7.3.260.0190.00016.60
7.3.250.0050.01216.65
7.3.240.0140.01016.68
7.3.230.0140.00416.64
7.3.210.0070.01016.67
7.3.200.0120.01319.39
7.3.190.0120.00916.75
7.3.180.0140.00716.71
7.3.170.0090.01316.57
7.3.160.0130.00416.90
7.3.120.0110.00515.11
7.3.110.0100.01014.88
7.3.100.0120.00814.80
7.3.90.0060.01214.89
7.3.80.0070.01115.15
7.3.70.0070.01014.95
7.3.60.0060.01015.09
7.3.50.0130.00314.93
7.3.40.0060.00615.06
7.3.30.0060.01015.18
7.3.20.0090.00916.93
7.3.10.0030.01316.80
7.3.00.0090.00617.07
7.2.330.0100.00916.63
7.2.320.0180.00416.83
7.2.310.0110.01116.61
7.2.300.0080.01616.46
7.2.290.0070.01016.62
7.2.250.0070.01415.10
7.2.240.0110.01015.10
7.2.230.0060.00915.48
7.2.220.0070.01115.08
7.2.210.0130.00615.42
7.2.200.0040.01515.30
7.2.190.0110.00715.20
7.2.180.0100.00615.45
7.2.170.0060.00915.20
7.2.60.0070.01016.87
7.2.00.0200.01619.74
7.1.330.0060.01216.22
7.1.320.0040.01416.29
7.1.310.0040.01115.85
7.1.300.0080.00916.02
7.1.290.0060.01215.66
7.1.280.0030.00916.06
7.1.270.0070.01016.07
7.1.260.0070.00416.05
7.1.200.0080.00316.02
7.1.100.0060.00618.63
7.1.70.0060.00617.16
7.1.60.0100.01019.82
7.1.50.0090.01217.29
7.1.00.0070.04322.66
7.0.200.0000.00916.91
7.0.140.0030.07722.55
7.0.60.0030.04020.48
7.0.50.0000.04718.11
7.0.40.0130.08320.59
7.0.30.0370.07020.59
7.0.20.0200.08320.45
7.0.10.0300.05320.51
7.0.00.0030.09020.54
5.6.280.0030.09321.36
5.6.210.0100.07320.89
5.6.200.0030.05718.49
5.6.190.0130.07321.09
5.6.180.3400.04321.07
5.6.170.0200.04320.83
5.6.160.0170.06720.86
5.6.150.0070.08718.58
5.6.140.0070.04718.51
5.6.130.0170.07718.45
5.6.120.0130.04021.51
5.6.110.0070.06321.43
5.6.100.0130.07021.32
5.6.90.0070.08021.51
5.6.80.0100.06320.89
5.6.70.0300.05720.88
5.5.350.0300.07320.75
5.5.340.0070.08018.25
5.5.330.0070.04320.84
5.5.320.0270.07720.58
5.5.310.0270.06020.66
5.5.300.0000.04718.37
5.5.290.0070.05318.36
5.5.280.0030.04321.36
5.5.270.0030.04321.24
5.5.260.0070.07021.24
5.5.250.0130.07721.11
5.5.240.0000.04020.44
5.4.450.0800.05019.60
5.4.440.0730.04319.52
5.4.430.0370.05319.51
5.4.420.0670.05719.64
5.4.410.0600.04719.68
5.4.400.0300.05719.01
5.4.390.0270.05718.73
5.4.380.0300.05018.71
5.4.370.0130.05019.13
5.4.360.0100.05318.87
5.4.350.0100.07318.72
5.4.340.0070.05719.04
5.4.320.0090.03612.68
5.4.310.0090.04112.67
5.4.300.0060.04112.68
5.4.290.0080.04012.68
5.4.280.0110.03612.57
5.4.270.0020.04012.57
5.4.260.0170.06319.04
5.4.250.0130.06719.16
5.4.240.0030.05719.16
5.4.230.0070.05319.26
5.4.220.0130.07319.04
5.4.210.0070.05719.15
5.4.200.0130.05019.23
5.4.190.0170.04319.27
5.4.180.0130.05019.25
5.4.170.0100.07019.27
5.4.160.0100.05319.25
5.4.150.0130.06319.17
5.4.140.0100.05316.73
5.4.130.0130.05016.71
5.4.120.0030.07716.91
5.4.110.0170.04316.68
5.4.100.0130.05716.66
5.4.90.0070.07016.77
5.4.80.0130.04016.83
5.4.70.0070.05016.80
5.4.60.0100.05016.79
5.4.50.0070.04716.75
5.4.40.0100.05016.88
5.4.30.0170.04716.67
5.4.20.0070.06016.64
5.4.10.0100.05016.73
5.4.00.0100.04716.10
5.3.290.0090.03612.88
5.3.280.0130.05014.66
5.3.270.0130.04714.88
5.3.260.0070.06314.68
5.3.250.0070.05014.85
5.3.240.0070.07314.89
5.3.230.0100.05014.72
5.3.220.0130.04314.69
5.3.210.0130.04714.68
5.3.200.0130.04314.84
5.3.190.0170.05014.50
5.3.180.0000.05714.69
5.3.170.0070.05014.66
5.3.160.0200.06314.66
5.3.150.0130.05014.65
5.3.140.0070.08314.51
5.3.130.0000.06714.67
5.3.120.0030.05714.66
5.3.110.0030.05714.66
5.3.100.0030.06314.28
5.3.90.0100.05014.29
5.3.80.0030.05314.20
5.3.70.0130.06313.96
5.3.60.0100.04714.01
5.3.50.0130.06714.08
5.3.40.0170.04714.04
5.3.30.0130.06014.23
5.3.20.0100.04713.70
5.3.10.0030.05313.73
5.3.00.0070.05013.81
5.2.170.0100.03711.20
5.2.160.0100.03711.34
5.2.150.0170.04311.27
5.2.140.0100.03711.08
5.2.130.0070.04011.28
5.2.120.0130.06011.14
5.2.110.0070.04711.22
5.2.100.0130.05311.29
5.2.90.0100.03711.27
5.2.80.0070.04011.18
5.2.70.0030.04311.28
5.2.60.0030.04711.18
5.2.50.0130.04711.03
5.2.40.0030.05711.09
5.2.30.0170.05011.14
5.2.20.0070.05711.02
5.2.10.0130.03310.92
5.2.00.0030.05010.91
5.1.60.0030.04010.10
5.1.50.0130.02710.03
5.1.40.0030.05010.09
5.1.30.0030.05710.53
5.1.20.0030.03710.52
5.1.10.0030.03710.33
5.1.00.0100.05010.08
5.0.50.0100.0238.57
5.0.40.0070.0238.47
5.0.30.0030.0478.32
5.0.20.0030.0278.33
5.0.10.0030.0408.27
5.0.00.0000.0478.24
4.4.90.0030.0207.32
4.4.80.0070.0207.32
4.4.70.0030.0277.32
4.4.60.0030.0337.32
4.4.50.0070.0337.32
4.4.40.0030.0337.32
4.4.30.0100.0237.32
4.4.20.0030.0237.32
4.4.10.0000.0237.32
4.4.00.0070.0307.32
4.3.110.0030.0337.32
4.3.100.0030.0307.32
4.3.90.0030.0307.32
4.3.80.0000.0377.32
4.3.70.0000.0337.32
4.3.60.0030.0307.32
4.3.50.0070.0277.32
4.3.40.0030.0437.32
4.3.30.0070.0177.32
4.3.20.0030.0237.32
4.3.10.0000.0307.32
4.3.00.0130.0176.75

preferences:
43.28 ms | 400 KiB | 5 Q