3v4l.org

run code in 300+ PHP versions simultaneously
<?php $var = 'http://sandbox.case-store.ch/images/27-12-2014 13-50-47.png'; $var2 = 'sandbox.case-store.ch/images/27-12-2014 13-50-47.png'; function getImageContentRaw($url) { try { echo 'Stage0'; return file_get_contents(rawurlencode($url)); } catch (PHPException $ex) { // Ignore error and try http and https prefix } if (substr($url, 0, 7) === 'http://' || substr($url, 0, 7) === 'https://') { echo 'Stage9'; return false; } try { echo 'Stage1'; return file_get_contents(urlencode('https://'.$url)); } catch (PHPException $ex) { // Ignore error } try { echo 'Stage2'; return file_get_contents(urlencode('http://' . $url)); } catch (PHPException $ex) { // Ignore error } echo 'Stage8'; return false; } var_dump(getImageContentRaw($var)); var_dump(getImageContentRaw($var2));

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.00618.64
8.3.50.0140.00522.04
8.3.40.0000.01418.70
8.3.30.0120.00319.03
8.3.20.0040.00420.16
8.3.10.0050.00321.89
8.3.00.0040.00419.14
8.2.180.0120.00318.54
8.2.170.0150.00022.96
8.2.160.0100.00320.39
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0030.00626.16
8.2.120.0000.00722.27
8.2.110.0100.00022.12
8.2.100.0080.00317.84
8.2.90.0050.00519.23
8.2.80.0040.00417.97
8.2.70.0000.00817.93
8.2.60.0080.00017.79
8.2.50.0080.00018.10
8.2.40.0080.00021.09
8.2.30.0040.00419.27
8.2.20.0000.00817.55
8.2.10.0000.00817.92
8.2.00.0000.00817.51
8.1.280.0110.00425.92
8.1.270.0040.00418.70
8.1.260.0080.00026.35
8.1.250.0070.00028.09
8.1.240.0090.00024.01
8.1.230.0080.00417.67
8.1.220.0050.00317.74
8.1.210.0000.00818.77
8.1.200.0090.00017.23
8.1.190.0000.00817.13
8.1.180.0000.00818.10
8.1.170.0030.00618.74
8.1.160.0050.00218.88
8.1.150.0000.00718.84
8.1.140.0040.00417.28
8.1.130.0040.00417.84
8.1.120.0040.00417.43
8.1.110.0050.00317.45
8.1.100.0000.00817.45
8.1.90.0040.00417.47
8.1.80.0080.00017.41
8.1.70.0040.00417.31
8.1.60.0040.00417.66
8.1.50.0000.00817.54
8.1.40.0030.00617.52
8.1.30.0030.00617.66
8.1.20.0020.00517.60
8.1.10.0050.00317.40
8.1.00.0030.00517.32
8.0.300.0040.00421.59
8.0.290.0040.00416.63
8.0.280.0030.00318.64
8.0.270.0000.00817.34
8.0.260.0030.00317.32
8.0.250.0030.00317.02
8.0.240.0030.00317.05
8.0.230.0000.00717.04
8.0.220.0030.00516.94
8.0.210.0030.00516.86
8.0.200.0000.00616.93
8.0.190.0080.00016.96
8.0.180.0080.00016.92
8.0.170.0050.00317.07
8.0.160.0040.00417.07
8.0.150.0040.00416.91
8.0.140.0040.00416.88
8.0.130.0050.00013.38
8.0.120.0040.00416.90
8.0.110.0000.00717.00
8.0.100.0070.00016.87
8.0.90.0000.00717.09
8.0.80.0040.01216.99
8.0.70.0000.00817.01
8.0.60.0040.00416.95
8.0.50.0030.00516.84
8.0.30.0100.01016.94
8.0.20.0140.00517.40
8.0.10.0040.00417.14
8.0.00.0050.01616.79
7.4.330.0000.00615.03
7.4.320.0000.00616.59
7.4.300.0000.00716.54
7.4.290.0070.00016.60
7.4.280.0070.00016.50
7.4.270.0070.00016.49
7.4.260.0020.00516.52
7.4.250.0000.00716.57
7.4.240.0040.00416.59
7.4.230.0030.00316.60
7.4.220.0120.00616.45
7.4.210.0140.00016.69
7.4.200.0000.00716.34
7.4.160.0080.01516.45
7.4.150.0150.00917.40
7.4.140.0110.00617.86
7.4.130.0060.01116.48
7.4.120.0050.01216.65
7.4.110.0080.01116.59
7.4.100.0130.01016.58
7.4.90.0100.00716.59
7.4.80.0190.00419.39
7.4.70.0030.01316.48
7.4.60.0070.01016.47
7.4.50.0060.00316.66
7.4.40.0070.01316.48
7.4.30.0080.00816.46
7.4.00.0060.01114.89
7.3.330.0030.00313.44
7.3.320.0000.00513.37
7.3.310.0030.00316.40
7.3.300.0030.00316.43
7.3.290.0170.00316.39
7.3.280.0080.01016.42
7.3.270.0100.00717.40
7.3.260.0120.01516.16
7.3.250.0100.00616.38
7.3.240.0060.01116.40
7.3.230.0070.01016.64
7.3.210.0070.01116.27
7.3.200.0130.00619.39
7.3.190.0110.01116.43
7.3.180.0130.00416.27
7.3.170.0070.01016.58
7.3.160.0040.01316.45
7.3.120.0040.01114.70
7.3.110.0080.00814.98
7.3.100.0060.01014.72
7.3.90.0040.01114.56
7.3.80.0160.00014.78
7.3.70.0050.00514.80
7.3.60.0080.00414.74
7.3.50.0070.00714.65
7.3.40.0000.01314.85
7.3.30.0090.00614.84
7.3.20.0070.00716.52
7.3.10.0110.00416.70
7.3.00.0030.00716.65
7.2.330.0170.00316.68
7.2.320.0060.01316.58
7.2.310.0130.00416.80
7.2.300.0150.00316.68
7.2.290.0170.00616.35
7.2.250.0070.01415.05
7.2.240.0060.01315.00
7.2.230.0030.01514.70
7.2.220.0090.00914.93
7.2.210.0040.01114.93
7.2.200.0000.00915.04
7.2.190.0000.01315.13
7.2.180.0080.00414.73
7.2.170.0110.00415.04
7.2.130.0030.00916.91
7.2.120.0040.01116.77
7.2.110.0060.01017.03
7.2.100.0090.00616.88
7.2.90.0070.00317.04
7.2.80.0100.00616.94
7.2.70.0060.00916.61
7.2.60.0100.00617.04
7.2.50.0090.00016.94
7.2.40.0130.00316.83
7.2.30.0030.01016.84
7.2.20.0060.00317.03
7.2.10.0070.00716.62
7.2.00.0040.01017.95
7.1.330.0050.00816.00
7.1.320.0000.00915.77
7.1.310.0120.00315.92
7.1.300.0090.00315.50
7.1.290.0030.01015.95
7.1.280.0030.01015.79
7.1.270.0030.01015.80
7.1.260.0060.00915.73
7.1.250.0030.01015.71
7.1.100.0050.00517.88
7.1.70.0000.01117.20
7.1.60.0130.00919.57
7.1.50.0030.02016.93
7.1.00.0030.07722.48
7.0.200.0070.00416.41
7.0.140.0130.06721.99
7.0.120.0300.04021.89
7.0.110.0000.06721.95
7.0.100.0070.03722.07
7.0.90.0100.03722.11
7.0.80.0100.07322.09
7.0.70.0000.04321.91
7.0.60.0030.07721.94
7.0.50.0000.07022.14
7.0.40.0000.04720.15
7.0.30.0000.04720.02
7.0.20.0030.06720.03
7.0.10.0130.06019.96
7.0.00.0070.03720.05
5.6.280.0030.07020.82
5.6.270.0100.03321.04
5.6.260.0130.04020.92
5.6.250.0100.07721.05
5.6.240.0000.05020.80
5.6.230.0030.04020.82
5.6.220.0100.03321.05
5.6.210.0070.04020.91
5.6.200.0130.07320.96
5.6.190.0130.07020.99
5.6.180.0000.04320.88
5.6.170.0100.07720.96
5.6.160.0030.04320.88
5.6.150.0070.04721.00
5.6.140.0030.05721.00
5.6.130.0000.04021.00
5.6.120.0130.03020.98
5.6.110.0030.07021.01
5.6.100.0070.04020.82
5.6.90.0030.06720.85
5.6.80.0030.04720.24
5.6.70.0000.04320.40
5.6.60.0100.03320.20
5.6.50.0030.06320.24
5.6.40.0070.04020.31
5.6.30.0030.04020.31
5.6.20.0030.07020.37
5.6.10.0070.06020.22
5.6.00.0100.03320.29
5.5.380.0070.04317.68
5.5.370.0000.06717.47
5.5.360.0000.03717.51
5.5.350.0070.03317.68
5.5.340.0000.08318.22
5.5.330.0170.06317.83
5.5.320.0100.05317.91
5.5.310.0030.04317.91
5.5.300.0200.02018.13
5.5.290.0070.05018.23
5.5.280.0030.07318.25
5.5.270.0030.05717.90
5.5.260.0000.04718.13
5.5.250.0070.03018.08
5.5.240.0100.03317.30
5.5.230.0100.03317.46
5.5.220.0030.03717.61
5.5.210.0130.04017.43
5.5.200.0000.04017.43
5.5.190.0070.06017.43
5.5.180.0030.08017.44
5.5.160.0000.04017.61
5.5.150.0030.04017.30
5.5.140.0000.04317.18
5.5.130.0030.03717.27
5.5.120.0030.04017.57
5.5.110.0030.04017.25
5.5.100.0030.03717.36
5.5.90.0000.04017.18
5.5.80.0000.04017.18
5.5.70.0000.04017.34
5.5.60.0000.04017.49
5.5.50.0030.03717.31
5.5.40.0070.03317.50
5.5.30.0070.07017.36
5.5.20.0130.03317.36
5.5.10.0000.04717.41
5.5.00.0000.04017.32
5.4.450.0070.06719.31
5.4.440.0070.04019.46
5.4.430.0170.07019.44
5.4.420.0000.04319.61
5.4.410.0070.03319.16
5.4.400.0070.03319.29
5.4.390.0030.03719.21
5.4.380.0070.03319.28
5.4.370.0000.06319.04
5.4.360.0070.05018.90
5.4.350.0100.07319.11
5.4.340.0000.06018.90
5.4.320.0130.07019.29
5.4.310.0070.06719.11
5.4.300.0070.04018.93
5.4.290.0030.05719.28
5.4.280.0030.05019.08
5.4.270.0070.04318.93
5.4.260.0030.03718.95
5.4.250.0030.04018.96
5.4.240.0030.03718.96
5.4.230.0030.04719.13
5.4.220.0070.06719.28
5.4.210.0070.05318.92
5.4.200.0030.03718.96
5.4.190.0170.02318.91
5.4.180.0070.04018.94
5.4.170.0070.03318.88
5.4.160.0030.04019.16
5.4.150.0030.04018.96
5.4.140.0000.04016.24
5.4.130.0070.03316.48
5.4.120.0030.05716.57
5.4.110.0070.04716.54
5.4.100.0100.07016.37
5.4.90.0000.05316.50
5.4.80.0070.07016.31
5.4.70.0100.04316.44
5.4.60.0000.03716.39
5.4.50.0130.04716.51
5.4.40.0030.04016.23
5.4.30.0070.06016.41
5.4.20.0000.05716.32
5.4.10.0100.06316.17
5.4.00.0030.03315.86
5.3.290.0070.07714.79
5.3.280.0000.04014.69
5.3.270.0000.04714.74
5.3.260.0030.03714.61
5.3.250.0030.03714.73
5.3.240.0070.07014.64
5.3.230.0070.05714.72
5.3.220.0030.08714.59
5.3.210.0030.05314.80
5.3.200.0100.04014.56
5.3.190.0100.07014.56
5.3.180.0130.07714.54
5.3.170.0000.04014.42
5.3.160.0000.05714.66
5.3.150.0000.03714.59
5.3.140.0070.05014.64
5.3.130.0030.06314.68
5.3.120.0000.06714.58
5.3.110.0000.05014.55
5.3.100.0030.06713.90
5.3.90.0030.05714.16
5.3.80.0000.05014.01
5.3.70.0100.08014.10
5.3.60.0130.05714.04
5.3.50.0070.04013.94
5.3.40.0030.05013.95
5.3.30.0000.05313.98
5.3.20.0070.04713.70
5.3.10.0030.06713.51
5.3.00.0000.04013.68
5.2.170.0000.05011.18
5.2.160.0100.05311.15
5.2.150.0000.03011.21
5.2.140.0030.04011.12
5.2.130.0000.03011.12
5.2.120.0030.03311.19
5.2.110.0000.06310.95
5.2.100.0070.04711.11
5.2.90.0030.03011.23
5.2.80.0000.03711.19
5.2.70.0000.03011.09
5.2.60.0030.03011.07
5.2.50.0100.02011.11
5.2.40.0030.03011.01
5.2.30.0000.03010.93
5.2.20.0000.04311.05
5.2.10.0030.04011.01
5.2.00.0030.04010.73
5.1.60.0000.03710.14
5.1.50.0030.02710.14
5.1.40.0000.02310.14
5.1.30.0030.02010.35
5.1.20.0000.04710.50
5.1.10.0000.02710.14
5.1.00.0000.03010.14
5.0.50.0000.02010.14
5.0.40.0000.03010.14
5.0.30.0000.03010.14
5.0.20.0000.02010.14
5.0.10.0000.01710.14
5.0.00.0030.03010.14
4.4.90.0030.02710.14
4.4.80.0030.02310.14
4.4.70.0030.03010.14
4.4.60.0030.03010.14
4.4.50.0000.01710.14
4.4.40.0070.01710.14
4.4.30.0000.01710.14
4.4.20.0000.01710.14
4.4.10.0000.01710.14
4.4.00.0030.02310.14
4.3.110.0000.01310.14
4.3.100.0030.01310.14
4.3.90.0000.01310.14
4.3.80.0000.02310.14
4.3.70.0000.01710.14
4.3.60.0030.02710.14
4.3.50.0000.01310.14
4.3.40.0030.03010.14
4.3.30.0000.01310.14
4.3.20.0000.01310.14
4.3.10.0000.01710.14
4.3.00.0000.01310.14

preferences:
54.67 ms | 401 KiB | 5 Q