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 (count($posts) == 10) ? continue : break; }

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)
5.6.140.0130.04718.16
5.6.130.0070.04018.27
5.6.120.0100.04721.17
5.6.110.0100.07720.99
5.6.100.0130.07721.01
5.6.90.0030.04321.00
5.6.80.0100.06320.44
5.6.70.4300.04020.36
5.5.300.0030.04017.99
5.5.290.0070.05017.98
5.5.280.0100.08020.77
5.5.270.0070.04020.89
5.5.260.0070.04020.88
5.5.250.0070.03720.61
5.5.240.0000.06720.26
5.4.450.0770.05019.55
5.4.440.0770.06319.58
5.4.430.1030.07319.41
5.4.420.1100.05719.34
5.4.410.0830.05319.19
5.4.400.0870.05719.06
5.4.390.1030.06319.28
5.4.380.1000.05718.84
5.4.370.1000.06019.28
5.4.360.1100.08318.98
5.4.350.0970.04319.25
5.4.340.0870.05719.26
5.4.320.1030.04019.06
5.4.310.0930.04719.06
5.4.300.0930.04319.37
5.4.290.0970.04319.01
5.4.280.1030.04319.01
5.4.270.0970.05019.30
5.4.260.0930.05319.13
5.4.250.0830.06719.14
5.4.240.0870.05019.14
5.4.230.0870.04718.85
5.4.220.0800.06319.25
5.4.210.0770.05719.22
5.4.200.0630.05719.05
5.4.190.0700.06019.36
5.4.180.0900.04318.97
5.4.170.0900.05019.14
5.4.160.0870.06319.20
5.4.150.1100.05319.26
5.4.140.0930.04716.30
5.4.130.1100.04716.30
5.4.120.0830.05016.56
5.4.110.0900.05016.47
5.4.100.1000.03716.64
5.4.90.0900.04316.39
5.4.80.0900.04716.18
5.4.70.0830.04716.50
5.4.60.0830.04716.41
5.4.50.0900.04016.59
5.4.40.0870.05316.50
5.4.30.1100.05316.58
5.4.20.0900.05716.42
5.4.10.0870.05016.16
5.4.00.0930.06015.73

preferences:
141.83 ms | 1394 KiB | 7 Q