3v4l.org

run code in 300+ PHP versions simultaneously
<?php $page_id = '189147671108377'; $page_access_token = '488543067934739|nMZH2r92f-6j2amnWaAUIrQZHlg'; $json = file_get_contents('https://graph.facebook.com/'.$page_id.'/posts?access_token='.$page_access_token); $data = json_decode($json); /* There are multiple properties which contain links, pictures, etc. of that particular status var_dump($data) to see all available properties. */ $posts = array(); foreach ($data->data as $post) { $posts[] = array( 'messgage' => $post->message, 'picture' => $post->picture, 'link' => $post->link, 'description' => $post->description ); // get the last 10 statuses if (count($posts) == 10) break; else continue; }

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.00316.63
8.3.50.0060.01721.15
8.3.40.0060.01218.56
8.3.30.0110.00418.60
8.3.20.0040.00420.35
8.3.10.0000.00823.65
8.3.00.0080.00017.78
8.2.180.0070.01016.63
8.2.170.0120.00322.96
8.2.160.0070.00720.46
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0050.00226.16
8.2.120.0080.00017.63
8.2.110.0060.00322.26
8.2.100.0120.00017.80
8.2.90.0030.00519.22
8.2.80.0030.00617.97
8.2.70.0060.00317.75
8.2.60.0000.00917.68
8.2.50.0080.00018.07
8.2.40.0000.00821.13
8.2.30.0040.00420.55
8.2.20.0020.00517.74
8.2.10.0040.00418.17
8.2.00.0030.00518.06
8.1.280.0060.00925.92
8.1.270.0060.00923.91
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0040.00420.89
8.1.230.0040.00817.54
8.1.220.0040.00417.78
8.1.210.0050.00318.77
8.1.200.0070.00317.35
8.1.190.0000.00817.35
8.1.180.0000.00718.10
8.1.170.0030.00520.38
8.1.160.0040.00422.11
8.1.150.0000.00718.90
8.1.140.0060.00319.48
8.1.130.0000.00717.64
8.1.120.0040.00417.43
8.1.110.0040.00417.51
8.1.100.0000.00717.38
8.1.90.0040.00417.49
8.1.80.0040.00417.38
8.1.70.0070.00017.45
8.1.60.0060.00317.61
8.1.50.0080.00017.43
8.1.40.0040.00417.45
8.1.30.0080.00017.67
8.1.20.0080.00017.60
8.1.10.0040.00417.52
8.1.00.0000.00817.40
8.0.300.0000.00818.77
8.0.290.0000.00816.88
8.0.280.0070.00018.47
8.0.270.0070.00017.36
8.0.260.0040.00417.36
8.0.250.0040.00417.13
8.0.240.0000.00717.03
8.0.230.0000.00716.99
8.0.220.0000.00717.06
8.0.210.0000.00716.98
8.0.200.0030.00317.18
8.0.190.0040.00417.01
8.0.180.0040.00417.17
8.0.170.0040.00417.08
8.0.160.0050.00317.10
8.0.150.0070.00017.06
8.0.140.0000.00716.97
8.0.130.0000.00713.53
8.0.120.0040.00416.99
8.0.110.0060.00317.05
8.0.100.0070.00017.09
8.0.90.0000.00716.93
8.0.80.0070.00717.02
8.0.70.0000.00717.05
8.0.60.0000.00717.02
8.0.50.0050.00317.02
8.0.30.0130.00417.10
8.0.20.0080.01017.40
8.0.10.0040.00416.91
8.0.00.0070.01016.81
7.4.330.0050.00015.09
7.4.320.0000.00716.56
7.4.300.0060.00316.46
7.4.290.0060.00316.54
7.4.280.0050.00516.63
7.4.270.0070.00016.62
7.4.260.0030.00316.55
7.4.250.0000.00716.52
7.4.240.0020.00516.67
7.4.230.0070.00016.62
7.4.220.0060.01316.53
7.4.210.0130.00716.45
7.4.200.0030.00516.65
7.4.160.0150.00016.63
7.4.150.0060.01217.40
7.4.140.0160.00617.86
7.4.130.0060.01616.55
7.4.120.0080.00916.56
7.4.110.0070.01416.49
7.4.100.0130.01016.46
7.4.90.0100.00716.45
7.4.80.0060.01119.39
7.4.70.0170.00616.59
7.4.60.0060.01216.56
7.4.50.0030.00616.52
7.4.40.0070.01116.49
7.4.30.0090.01616.63
7.4.00.0070.00714.93
7.3.330.0060.00013.34
7.3.320.0060.00013.24
7.3.310.0040.00416.24
7.3.300.0030.00316.34
7.3.290.0050.01116.39
7.3.280.0090.00916.44
7.3.270.0100.00717.40
7.3.260.0070.01016.58
7.3.250.0110.00616.40
7.3.240.0090.00916.50
7.3.230.0140.00816.39
7.3.210.0030.01316.48
7.3.200.0060.01116.71
7.3.190.0090.00916.46
7.3.180.0180.00416.33
7.3.170.0040.01316.50
7.3.160.0100.00616.32
7.2.330.0170.00316.64
7.2.320.0100.00716.92
7.2.310.0070.01016.64
7.2.300.0140.00316.92
7.2.290.0130.01016.66
7.2.60.0160.00016.89
7.2.00.0100.01019.87
7.1.200.0060.01015.64
7.1.100.0450.00311.98
7.1.70.0100.00517.14
7.1.60.0100.01019.50
7.1.50.0080.01517.47
7.1.00.0000.07722.63
7.0.200.0040.00717.13
7.0.100.0270.06320.57
7.0.90.0030.06320.34
7.0.80.0000.09020.34
7.0.70.0400.08320.23
7.0.60.0400.04020.21
7.0.50.0130.07320.66
7.0.40.0170.07720.39
7.0.30.0130.07720.32
7.0.20.0070.04720.54
7.0.10.0170.07320.51
7.0.00.0100.10320.55
5.6.250.0100.07720.94
5.6.240.0100.07320.90
5.6.230.0130.07320.90
5.6.220.0070.07020.91
5.6.210.0030.04720.67
5.6.200.0100.04021.36
5.6.190.0200.03021.43
5.6.180.0130.09021.48
5.6.170.0100.08321.44
5.6.160.0130.06721.48
5.6.150.0100.08021.36
5.6.140.0170.07321.49
5.6.130.0070.07721.39
5.6.120.0070.07321.39
5.6.110.0170.04321.48
5.6.100.0100.08721.21
5.6.90.0100.08021.46
5.6.80.0000.06020.71
5.6.70.0100.06320.86
5.6.60.0100.05020.75
5.6.50.0070.08020.74
5.6.40.0030.06020.59
5.6.30.0070.07720.59
5.6.20.0000.07020.84
5.6.10.0070.08020.88
5.6.00.0100.08020.59
5.5.380.0170.07020.60
5.5.370.0100.08320.59
5.5.360.0170.07320.77
5.5.350.0200.07320.81
5.5.340.0070.08021.15
5.5.330.0070.05021.00
5.5.320.0070.07020.95
5.5.310.0070.07721.18
5.5.300.0170.07321.15
5.5.290.0100.08021.33
5.5.280.0100.05720.96
5.5.270.0170.05321.13
5.5.260.0170.07721.28
5.5.250.0100.08020.98
5.5.240.0070.08020.64
5.5.230.0070.04720.66
5.5.220.0100.07720.66
5.5.210.0070.08020.58
5.5.200.0230.06020.53
5.5.190.0070.08020.67
5.5.180.0170.07020.38
5.5.160.0130.07020.59
5.5.150.0070.04720.57
5.5.140.0130.07720.42
5.5.130.0170.07320.59
5.5.120.0070.07020.39
5.5.110.0130.07720.49
5.5.100.0070.07720.51
5.5.90.0100.03320.51
5.5.80.0100.07020.41
5.5.70.0030.04020.53
5.5.60.0130.06020.50
5.5.50.0170.06320.41
5.5.40.0030.08020.32
5.5.30.0100.08020.29
5.5.20.0130.07720.33
5.5.10.0100.05020.31
5.5.00.0070.08020.43
5.4.450.0130.06719.59
5.4.440.0000.08719.56
5.4.430.0100.04019.75
5.4.420.0070.03719.76
5.4.410.0100.08019.59
5.4.400.0030.07719.52
5.4.390.0070.07019.31
5.4.380.0070.07719.45
5.4.370.0070.08019.26
5.4.360.0130.07319.35
5.4.350.0030.07719.17
5.4.340.0100.04319.41
5.4.320.0070.08019.54
5.4.310.0100.07019.40
5.4.300.0070.07719.16
5.4.290.0170.05719.38
5.4.280.0170.07319.28
5.4.270.0130.03019.48
5.4.260.0000.08019.35
5.4.250.0130.04719.39
5.4.240.0070.08019.39
5.4.230.0130.03319.31
5.4.220.0070.07319.16
5.4.210.0070.09019.25
5.4.200.0100.07019.59
5.4.190.0100.07319.47
5.4.180.0070.05319.13
5.4.170.0100.06719.32
5.4.160.0070.03719.37
5.4.150.0000.08019.24
5.4.140.0030.04316.07
5.4.130.0130.05016.21
5.4.120.0070.03316.31
5.4.110.0030.03716.43
5.4.100.0070.03316.38
5.4.90.0130.02716.21
5.4.80.0000.04016.41
5.4.70.0100.03016.43
5.4.60.0070.03016.31
5.4.50.0100.02716.23
5.4.40.0070.03316.23
5.4.30.0030.03716.33
5.4.20.0070.03316.18
5.4.10.0030.03716.27
5.4.00.0000.03715.66

preferences:
81.54 ms | 401 KiB | 5 Q