3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = [ [ 'id' => 'UP0006-CUSA08724_00-BATTLEFIELDV0000', 'attributes' => [ 'name' => 'Battlefield V [test1]', 'thumbnail-url-base' => 'https://store.playstation.com/store/api/chihiro/00_09_000/container/US/en/999/UP0006-CUSA08724_00-BATTLEFIELDV0000/1539651459000/image', 'release-date' => '2018-12-14T00:00:00Z' ], ], [ 'id' => 'UP0006-CUSA08724_00-BATTLEFIELDV0000', 'attributes' => [ 'name' => 'Battlefield V [test2]', 'thumbnail-url-base' => 'https://store.playstation.com/store/api/chihiro/00_09_000/container/US/en/999/UP0006-CUSA08724_00-BATTLEFIELDV0000/1539651459000/image', 'release-date' => '2018-10-14T00:00:00Z' ], ], [ 'id' => 'UP0006-CUSA08724_00-BATTLEFIELDV0000', 'attributes' => [ 'name' => 'Battlefield V [test3]', 'thumbnail-url-base' => 'https://store.playstation.com/store/api/chihiro/00_09_000/container/US/en/999/UP0006-CUSA08724_00-BATTLEFIELDV0000/1539651459000/image', 'release-date' => '2019-10-14T00:00:00Z' ], ], [ 'id' => 'UP0006-CUSA08724_00-BATTLEFIELDV0000', 'attributes' => [ 'name' => "Barbie's selfie adventures", 'thumbnail-url-base' => 'https://store.playstation.com/store/api/chihiro/00_09_000/container/US/en/999/UP0006-CUSA08724_00-BATTLEFIELDV0000/1539651459000/image', 'release-date' => '2018-10-18T00:00:00Z' ], ], ]; foreach($arr as $game){ $timeleft = strtotime($game['attributes']['release-date'])-time(); if($timeleft>0) $games[$timeleft] = floor($timeleft/86400) ." days left to ".$game['attributes']['name'] ." \n"; } ksort($games); echo implode("", $games);

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.0090.00614.96
7.3.120.0110.00715.34
7.3.110.0060.00915.07
7.3.100.0030.01415.16
7.3.90.0060.00914.83
7.3.80.0060.00615.01
7.3.70.0110.00715.04
7.3.60.0000.01315.11
7.3.50.0040.01114.78
7.3.40.0000.01315.05
7.3.30.0030.00915.07
7.3.20.0100.00716.65
7.3.10.0060.00916.82
7.3.00.0030.01016.92
7.2.250.0100.00615.23
7.2.240.0040.01515.20
7.2.230.0030.01415.20
7.2.220.0060.00615.14
7.2.210.0100.00715.10
7.2.200.0000.01615.15
7.2.190.0070.01015.26
7.2.180.0060.01015.22
7.2.170.0060.00615.34
7.2.110.0560.00714.97
7.2.100.0630.00915.09
7.2.90.0720.00714.87
7.2.80.0690.00015.08
7.2.70.0740.00415.14
7.2.60.0610.00714.96
7.2.50.0730.00314.96
7.2.40.0720.00715.02
7.2.30.0640.01015.37
7.2.20.0640.01015.33
7.2.10.0790.00315.14
7.2.00.0890.00615.02
7.1.330.0040.01215.65
7.1.320.0080.00616.08
7.1.310.0030.01315.79
7.1.300.0040.00815.85
7.1.290.0030.00915.94
7.1.280.0030.00615.79
7.1.270.0100.00716.09
7.1.260.0030.00915.95
7.1.230.0590.01013.91
7.1.220.0540.01214.09
7.1.210.0670.00614.15
7.1.200.0620.01013.95
7.1.190.0670.00414.08
7.1.180.0720.00713.96
7.1.170.0690.00314.07
7.1.160.0700.00314.15
7.1.150.1750.01014.24
7.1.140.0610.00313.99
7.1.130.0610.00614.11
7.1.120.0620.00714.24
7.1.110.0600.00614.23
7.1.100.0640.01014.23
7.1.90.0620.01014.16
7.1.80.0620.01013.98
7.1.70.0740.00314.33
7.1.60.0820.01332.23
7.1.50.0920.01032.14
7.1.40.0780.00331.86
7.1.30.0870.01631.90
7.1.20.0870.00332.12
7.1.10.0560.01014.10
7.1.00.1010.00014.08
5.6.380.0070.00714.32

preferences:
28.15 ms | 401 KiB | 5 Q