3v4l.org

run code in 300+ PHP versions simultaneously
<?php $fb_username = 'LinkToLife'; $tw_username = 'phishnet'; $fb = @json_decode(file_get_contents('https://graph.facebook.com/'.$fb_username)); $fb_fans = number_format($fb->fan_count); $tw = @json_decode(file_get_contents('http://api.twitter.com/1/users/show.json?screen_name='.$tw_username)); $tw_followers = number_format($tw->followers_count); ?><html> <head> <title>Fans and Followers</title> </head> <body> Facebook fan count: <?=$fb_fans;?><br /> Twitter follower count: <?=$tw_followers;?><br /> </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.0100.01018.81
8.3.50.0100.00422.02
8.3.40.0060.01219.09
8.3.30.0130.00318.95
8.3.20.0040.00418.99
8.3.10.0040.00421.29
8.3.00.0080.00023.82
8.2.180.0150.00317.00
8.2.170.0110.01122.96
8.2.160.0070.00720.72
8.2.150.0000.00824.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0030.01119.91
8.2.110.0030.00722.31
8.2.100.0030.00917.97
8.2.90.0000.00817.99
8.2.80.0030.00517.97
8.2.70.0090.00017.75
8.2.60.0030.00517.93
8.2.50.0040.00418.07
8.2.40.0060.00318.47
8.2.30.0000.00820.01
8.2.20.0030.00618.06
8.2.10.0060.00318.14
8.2.00.0050.00318.10
8.1.280.0180.00325.92
8.1.270.0050.00323.99
8.1.260.0000.00926.35
8.1.250.0090.00028.09
8.1.240.0030.00622.64
8.1.230.0060.00621.10
8.1.220.0050.00518.00
8.1.210.0000.00919.01
8.1.200.0090.00017.48
8.1.190.0000.00817.48
8.1.180.0080.00018.10
8.1.170.0000.00918.77
8.1.160.0040.00419.16
8.1.150.0030.00618.91
8.1.140.0040.00417.79
8.1.130.0080.00017.99
8.1.120.0050.00217.53
8.1.110.0040.00417.61
8.1.100.0050.00317.62
8.1.90.0030.00617.63
8.1.80.0030.00517.61
8.1.70.0000.00717.68
8.1.60.0030.00617.76
8.1.50.0040.00417.59
8.1.40.0040.00417.56
8.1.30.0000.00817.86
8.1.20.0000.00817.95
8.1.10.0040.00417.66
8.1.00.0090.00017.46
8.0.300.0050.00220.33
8.0.290.0040.00417.00
8.0.280.0000.00718.74
8.0.270.0070.00017.59
8.0.260.0000.00717.06
8.0.250.0050.00317.31
8.0.240.0070.00317.23
8.0.230.0000.00817.23
8.0.220.0030.00317.25
8.0.210.0070.00017.16
8.0.200.0060.00017.19
8.0.190.0060.00317.23
8.0.180.0030.00717.29
8.0.170.0040.00417.17
8.0.160.0000.00717.29
8.0.150.0060.00317.05
8.0.140.0020.00517.24
8.0.130.0060.00013.71
8.0.120.0030.00517.14
8.0.110.0040.00417.15
8.0.100.0040.00417.12
8.0.90.0040.00417.16
8.0.80.0070.01117.21
8.0.70.0030.00517.16
8.0.60.0030.00517.25
8.0.50.0040.00417.32
8.0.30.0080.01317.54
8.0.20.0250.01117.47
8.0.10.0080.00017.20
8.0.00.0120.01016.97
7.4.330.0000.00514.98
7.4.320.0000.00616.74
7.4.300.0030.00316.77
7.4.290.0070.00016.70
7.4.280.0040.00416.74
7.4.270.0040.00416.63
7.4.260.0030.00313.55
7.4.250.0000.00816.89
7.4.240.0040.00416.84
7.4.230.0000.00716.63
7.4.220.0190.00616.89
7.4.210.0090.00816.84
7.4.200.0030.00616.73
7.4.190.0070.00016.84
7.4.160.0060.01216.78
7.4.150.0110.00717.40
7.4.140.0170.00617.86
7.4.130.0110.00716.72
7.4.120.0120.01016.71
7.4.110.0040.01416.84
7.4.100.0130.00716.86
7.4.90.0100.01016.79
7.4.80.0130.00319.37
7.4.70.0130.00416.81
7.4.60.0100.00716.75
7.4.50.0000.00816.89
7.4.40.0100.01022.52
7.4.30.0120.00616.74
7.4.00.0090.00915.24
7.3.330.0030.00313.46
7.3.320.0080.00013.70
7.3.310.0070.00016.84
7.3.300.0070.00016.69
7.3.290.0060.00916.71
7.3.280.0080.01116.72
7.3.270.0080.01117.40
7.3.260.0150.00818.24
7.3.250.0120.00816.66
7.3.240.0120.00616.85
7.3.230.0110.00716.81
7.3.210.0140.00316.75
7.3.200.0150.00619.39
7.3.190.0150.00316.75
7.3.180.0060.01216.71
7.3.170.0030.01516.83
7.3.160.0060.01016.75
7.3.120.0030.01415.25
7.2.330.0130.01016.88
7.2.320.0040.01516.70
7.2.310.0120.00616.81
7.2.300.0070.01016.96
7.2.290.0100.00716.82
7.1.70.0000.00817.75
7.1.60.0040.01519.40
7.1.50.0140.00917.25
7.1.00.0000.07722.82
7.0.200.0040.00417.24
7.0.140.0000.07722.56
7.0.80.0170.07720.47
7.0.70.0000.08720.52
7.0.60.0100.08720.40
7.0.50.0200.08020.92
7.0.40.0070.04020.69
7.0.30.0070.08320.59
7.0.20.0030.08720.67
7.0.10.0100.07720.59
7.0.00.0070.08320.68
5.6.230.0000.06321.10
5.6.220.0170.07321.09
5.6.210.0070.08321.01
5.6.200.0170.04321.66
5.6.190.0030.08721.50
5.6.180.0100.07721.40
5.6.170.0070.09021.58
5.6.160.0070.08021.64
5.6.150.0100.05321.58
5.6.140.0070.04321.43
5.6.130.0100.08321.58
5.6.120.0070.08021.50
5.6.110.0130.08021.50
5.6.100.0130.07021.59
5.6.90.0130.07021.61
5.6.80.0070.04720.92
5.6.70.0170.05320.97
5.6.60.0100.07321.02
5.6.50.0100.08021.11
5.6.40.0030.05720.77
5.6.30.0070.07720.89
5.6.20.0130.05720.91
5.6.10.0100.04720.79
5.6.00.0100.08020.92
5.5.370.0100.03720.87
5.5.360.0100.08720.96
5.5.350.0070.05320.95
5.5.340.0030.08321.25
5.5.330.0070.04321.41
5.5.320.0070.04021.32
5.5.310.0030.04721.25
5.5.300.0030.04721.39
5.5.290.0100.08021.48
5.5.280.0030.08321.41
5.5.270.0070.05721.42
5.5.260.0030.05021.50
5.5.250.0070.08021.20
5.5.240.0030.05720.76
5.5.230.0100.07320.57
5.5.220.0200.03320.57
5.5.210.0100.05720.79
5.5.200.0030.05720.86
5.5.190.0000.04720.58
5.5.180.0100.07720.82
5.5.160.0070.07020.73
5.5.150.0070.05020.80
5.5.140.0070.04020.57
5.5.130.0070.04020.64
5.5.120.0200.05320.57
5.5.110.0070.08320.71
5.5.100.0070.07720.63
5.5.90.0370.05020.65
5.5.80.0200.06720.66
5.5.70.0070.08320.73
5.5.60.0130.07720.64
5.5.50.0100.05020.49
5.5.40.0030.06320.54
5.5.30.0100.07720.70
5.5.20.0030.07020.57
5.5.10.0070.04320.66
5.5.00.0130.07320.59
5.4.450.0030.05319.80
5.4.440.0070.04019.86
5.4.430.0170.04719.85
5.4.420.0070.04719.78
5.4.410.0070.05019.68
5.4.400.0070.08019.53
5.4.390.0100.07719.45
5.4.380.0000.05719.53
5.4.370.0130.04019.53
5.4.360.0000.09019.57
5.4.350.0070.07719.61
5.4.340.0030.08019.44
5.4.320.0070.08719.68
5.4.310.0070.07019.45
5.4.300.0000.04719.65
5.4.290.0100.05019.60
5.4.280.0030.04719.67
5.4.270.0070.07319.65
5.4.260.0030.08019.66
5.4.250.0070.04019.47
5.4.240.0170.06019.48
5.4.230.0030.07719.68
5.4.220.0130.07019.45
5.4.210.0130.06319.67
5.4.200.0130.06719.52
5.4.190.0070.07319.68
5.4.180.0100.07319.55
5.4.170.0070.05319.44
5.4.160.0070.06719.54
5.4.150.0100.07719.66
5.4.140.0100.06316.80
5.4.130.0100.07016.79
5.4.120.0070.06716.94
5.4.110.0000.05017.00
5.4.100.0030.07016.99
5.4.90.0100.06316.91
5.4.80.0070.05017.08
5.4.70.0230.06016.89
5.4.60.0130.06317.00
5.4.50.0100.07016.87
5.4.40.0030.06316.93
5.4.30.0070.07017.10
5.4.20.0000.04016.96
5.4.10.0100.08016.96
5.4.00.0000.05016.50
5.3.290.0030.04715.04
5.3.280.0070.07714.96
5.3.270.0170.03014.97
5.3.260.0100.07715.05
5.3.250.0070.08014.97
5.3.240.0000.08014.88
5.3.230.0100.05715.01
5.3.220.0130.07715.01
5.3.210.0100.06714.94
5.3.200.0130.04714.97
5.3.190.0070.04014.93
5.3.180.0000.08014.83
5.3.170.0000.08015.00
5.3.160.0070.06314.98
5.3.150.0070.05014.96
5.3.140.0070.06014.82
5.3.130.0070.07014.91
5.3.120.0070.07314.96
5.3.110.0000.05714.96
5.3.100.0030.05714.48
5.3.90.0030.05714.31
5.3.80.0130.06714.45
5.3.70.0100.04314.37
5.3.60.0070.04014.39
5.3.50.0070.06014.23
5.3.40.0130.03314.22
5.3.30.0070.04014.29
5.3.20.0030.06314.13
5.3.10.0100.07314.09
5.3.00.0070.05713.91
5.2.170.0030.06311.57
5.2.160.0100.03711.57
5.2.150.0100.06011.58
5.2.140.0000.06311.57
5.2.130.0070.05011.57
5.2.120.0030.05711.57
5.2.110.0030.07011.57
5.2.100.0070.06311.57
5.2.90.0070.05311.57
5.2.80.0030.06711.62
5.2.70.0070.04011.57
5.2.60.0070.06311.57
5.2.50.0030.06711.57
5.2.40.0070.04011.57
5.2.30.0030.06011.57
5.2.20.0070.06011.57
5.2.10.0030.06311.57
5.2.00.0030.06711.57
5.1.60.0100.05011.57
5.1.50.0030.06011.57
5.1.40.0070.05311.57
5.1.30.0070.06011.57
5.1.20.0100.05011.57
5.1.10.0030.04311.57
5.1.00.0000.04311.57
5.0.50.0030.04711.57
5.0.40.0000.04711.57
5.0.30.0030.07011.57
5.0.20.0100.03711.57
5.0.10.0070.03711.57
5.0.00.0000.06711.57
4.4.90.0000.03311.57
4.4.80.0030.02311.57
4.4.70.0030.03011.57
4.4.60.0000.02711.57
4.4.50.0030.03011.57
4.4.40.0000.04311.57
4.4.30.0030.02011.57
4.4.20.0070.02711.57
4.4.10.0030.03711.57
4.4.00.0030.05711.57
4.3.110.0030.02311.57
4.3.100.0030.02311.57
4.3.90.0030.03011.57
4.3.80.0030.04711.57
4.3.70.0070.02711.57
4.3.60.0000.02011.57
4.3.50.0030.02711.57
4.3.40.0000.05311.57
4.3.30.0000.03711.57
4.3.20.0000.03311.57
4.3.10.0070.02311.57
4.3.00.0000.03311.57

preferences:
42.24 ms | 401 KiB | 5 Q