3v4l.org

run code in 300+ PHP versions simultaneously
<?php $recent_projects = [ [ 'project_title' => 'Project Name1', 'project_url' => 'url1' ], [ 'project_title' => 'Project Name2', 'project_url' => 'url2' ], [ 'project_title' => 'Project Name3', 'project_url' => 'url3' ], [ 'project_title' => 'Project Name4', 'project_url' => 'url4' ], [ 'project_title' => 'Project Name5', 'project_url' => 'url5' ] ]; $show_x_projects = 3; // How may projects to show $current_page = trim($_SERVER['REQUEST_URI'], '/'); // remove the project which matches with page url $filtered_projects = array_filter($recent_projects, function ($project) use ($current_page) { return ($project['project_url'] != $current_page); }); // select random 3 project from filtered projects $random_projects = array_rand($filtered_projects, $show_x_projects); foreach ($random_projects as $index) { $item = $filtered_projects[$index]; echo $item['project_title']."--"; }

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)
7.4.00.0040.01414.91
7.3.120.0090.00814.89
7.3.110.0040.01214.96
7.3.100.0080.00714.87
7.3.90.0060.01014.84
7.3.80.0040.01014.91
7.3.70.0060.00714.86
7.3.60.0070.00714.87
7.3.50.0090.00814.81
7.3.40.0060.00714.93
7.3.30.0060.00714.76
7.3.20.0040.01016.60
7.3.10.0050.00816.66
7.3.00.0060.00816.66
7.2.250.0050.01315.33
7.2.240.0080.01114.88
7.2.230.0060.00914.95
7.2.220.0070.01015.13
7.2.210.0080.00815.15
7.2.200.0070.00815.07
7.2.190.0050.01015.09
7.2.180.0020.01215.00
7.2.170.0070.00715.10
7.2.160.0030.01214.96
7.2.150.0060.00816.90
7.2.140.0030.01216.97
7.2.130.0090.00716.88
7.2.120.0070.00616.97
7.2.110.0100.00616.92
7.2.100.0130.00316.81
7.2.90.0060.00616.87
7.2.80.0050.01116.94
7.2.70.0080.00616.88
7.2.60.0080.00517.02
7.2.50.0050.01116.99
7.2.40.0080.00617.07
7.2.30.0080.00616.94
7.2.20.0080.00616.92
7.2.10.0050.01316.85
7.2.00.0060.00617.03
7.1.330.0050.01015.83
7.1.320.0050.00715.86
7.1.310.0050.00615.86
7.1.300.0070.00615.85
7.1.290.0050.00815.78
7.1.280.0050.00915.96
7.1.270.0060.00515.72
7.1.260.0050.00715.85
7.1.250.0070.01015.68

preferences:
33.6 ms | 403 KiB | 5 Q