3v4l.org

run code in 300+ PHP versions simultaneously
<?php $_GET = ['pool' => 1, 'beach' => 1, 'concierge' => 1]; // Created a static array for you guys for debugging // page.php?pool=1&beach=1&concierge=1 put this url path at the end of the url so you can get the data im seeing $htls=array(array("HotelName"=>"M Beach Hotel","minprice"=>264,"CountryCode"=>"US",'feature'=>array("type"=>"hotel","pool"=>1,"beach"=>1,'concierge'=>0)), array("HotelName"=>"Hilton","minprice"=>73,"CountryCode"=>"US",'feature'=>array("type"=>"hotel","pool"=>1,"beach"=>0,'concierge'=>1)), array("HotelName"=>"Fontainebleau","minprice"=>375,"CountryCode"=>"US",'feature'=>array("type"=>"resort","pool"=>1,"beach"=>1,'concierge'=>1)), array("HotelName"=>"Woodlow Inn","minprice"=>40,"CountryCode"=>"US",'feature'=>array("type"=>"inn","pool"=>0,"beach"=>0,'concierge'=>0)), array("HotelName"=>"El cabanna","minprice"=>73,"CountryCode"=>"US",'feature'=>array("type"=>"resort","pool"=>1,"beach"=>1,'concierge'=>1)), array("HotelName"=>"James south beach","minprice"=>73,"CountryCode"=>"US",'feature'=>array("type"=>"hotel","pool"=>0,"beach"=>1,'concierge'=>0)), ); $filtered = array_filter($htls, function($hotel) { return !array_diff_assoc($_GET, $hotel['feature']); }); var_dump($filtered);

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.4.140.0160.01217.50
8.4.130.0130.00717.81
8.4.120.0140.00520.74
8.4.110.0050.00320.86
8.4.100.0070.00417.75
8.4.90.0140.00717.73
8.4.80.0110.00917.79
8.4.70.0100.00319.59
8.4.60.0080.01318.82
8.4.50.0110.00919.43
8.4.40.0130.00717.67
8.4.30.0060.01217.59
8.4.20.0040.01219.42
8.4.10.0120.00417.86
8.3.270.0130.00716.45
8.3.260.0120.00616.65
8.3.250.0100.00818.92
8.3.240.0130.01016.60
8.3.230.0050.00516.40
8.3.220.0130.00617.16
8.3.210.0090.01016.57
8.3.200.0080.00216.63
8.3.190.0040.00516.97
8.3.180.0130.00818.15
8.3.170.0040.00717.23
8.3.160.0070.01118.19
8.3.150.0070.01318.86
8.3.140.0090.00916.98
8.3.130.0060.00316.80
8.3.120.0090.00018.81
8.3.110.0070.00318.02
8.3.100.0100.01016.60
8.3.90.0000.00826.77
8.3.80.0040.00816.72
8.3.70.0110.01116.58
8.3.60.0150.00418.30
8.3.50.0120.00718.20
8.3.40.0110.00418.84
8.3.30.0110.00418.59
8.3.20.0070.00021.75
8.3.10.0040.00423.68
8.3.00.0000.00821.39
8.2.290.0110.00820.29
8.2.280.0120.00818.38
8.2.270.0150.00417.02
8.2.260.0000.00822.13
8.2.250.0080.00016.68
8.2.240.0030.00616.74
8.2.230.0030.00620.94
8.2.220.0040.00424.06
8.2.210.0080.00026.77
8.2.200.0090.00018.54
8.2.190.0090.00616.58
8.2.180.0070.01425.92
8.2.170.0110.00418.99
8.2.160.0070.00722.96
8.2.150.0040.00425.66
8.2.140.0040.00424.66
8.2.130.0000.00726.16
8.2.120.0050.00319.83
8.2.110.0030.00622.20
8.2.100.0070.00417.84
8.2.90.0000.00818.34
8.2.80.0050.00317.97
8.2.70.0080.00017.80
8.2.60.0050.00318.07
8.2.50.0050.00318.34
8.2.40.0000.00822.27
8.2.30.0040.00419.38
8.2.20.0030.00618.11
8.2.10.0040.00417.63
8.2.00.0040.00418.16
8.1.330.0140.00616.76
8.1.320.0090.01116.00
8.1.310.0120.00316.55
8.1.300.0080.00016.45
8.1.290.0030.00630.84
8.1.280.0110.01125.92
8.1.270.0040.00424.01
8.1.260.0040.00426.35
8.1.250.0090.00028.09
8.1.240.0060.00322.09
8.1.230.0070.00319.01
8.1.220.0050.00317.74
8.1.210.0060.00318.77
8.1.200.0000.00917.35
8.1.190.0030.00717.13
8.1.180.0060.00318.10
8.1.170.0060.00318.68
8.1.160.0000.00818.94
8.1.150.0060.00320.27
8.1.140.0000.00717.75
8.1.130.0030.00517.46
8.1.120.0050.00817.50
8.1.110.0090.00217.48
8.1.100.0000.00817.53
8.1.90.0030.00617.42
8.1.80.0000.00917.46
8.1.70.0030.00717.48
8.1.60.0040.00417.54
8.1.50.0040.00417.43
8.1.40.0040.00417.49
8.1.30.0000.00817.59
8.1.20.0050.00217.73
8.1.10.0000.00717.41
8.1.00.0040.00817.43
8.0.300.0000.00719.64
8.0.290.0030.00516.63
8.0.280.0030.00318.45
8.0.270.0030.00317.31
8.0.260.0060.00016.83
8.0.250.0000.00716.84
8.0.240.0040.00417.00
8.0.230.0030.00316.97
8.0.220.0000.00716.77
8.0.210.0040.00416.80
8.0.200.0000.00816.84
8.0.190.0030.00516.92
8.0.180.0070.00016.82
8.0.170.0080.00016.91
8.0.160.0000.00716.89
8.0.150.0000.01016.83
8.0.140.0040.00316.71
8.0.130.0030.00313.28
8.0.120.0050.00316.92
8.0.110.0040.00416.81
8.0.100.0040.00416.74
8.0.90.0000.00716.86
8.0.80.0100.00616.89
8.0.70.0040.00416.79
8.0.60.0040.00416.92
8.0.50.0050.00217.02
8.0.30.0080.01216.96
8.0.20.0100.01017.40
8.0.10.0040.00416.90
8.0.00.0090.01216.73
7.4.330.0050.00015.55
7.4.320.0030.00316.54
7.4.300.0060.00016.58
7.4.290.0000.00716.50
7.4.280.0040.00416.42
7.4.270.0000.00716.43
7.4.260.0000.00716.49
7.4.250.0000.00716.54
7.4.240.0090.00016.50
7.4.230.0030.00316.43
7.4.220.0000.00716.56
7.4.210.0060.01016.51
7.4.200.0070.00016.63
7.4.160.0130.00816.53
7.4.140.0100.00917.86
7.4.130.0110.00816.52
7.4.120.0110.00916.49
7.4.110.0160.00316.31
7.4.100.0080.01416.39
7.4.90.0130.00916.56
7.4.80.0170.00319.39
7.4.70.0110.00716.49
7.4.60.0130.00316.51
7.4.50.0100.00316.38
7.4.40.0140.00416.60
7.4.00.0090.00315.14
7.3.330.0040.00413.32
7.3.320.0020.00313.14
7.3.310.0000.00916.16
7.3.300.0000.00716.22
7.3.290.0000.00616.23
7.3.280.0080.01116.22
7.3.260.0140.00416.43
7.3.250.0120.00916.43
7.3.240.0110.00816.54
7.3.230.0110.00816.38
7.3.210.0050.01416.30
7.3.200.0110.01116.57
7.3.190.0160.00716.50
7.3.180.0090.00616.50
7.3.170.0130.00316.26
7.3.160.0110.00516.66
7.2.330.0140.00616.54
7.2.320.0090.00916.40
7.2.310.0140.00316.69
7.2.300.0130.00516.86
7.2.290.0070.01216.31
7.2.60.0120.00317.13
7.2.30.0150.01317.87
7.2.20.0350.01317.86
7.2.10.0130.01017.55
7.2.00.0150.01417.96
7.1.200.0120.00315.53
7.1.150.0090.01116.71
7.1.140.0150.01216.64
7.1.130.0140.01116.91
7.1.120.0120.01216.74
7.1.110.0130.00815.96
7.1.100.0160.01116.37
7.1.90.0170.01415.79
7.1.80.0150.01815.95
7.1.70.0130.01715.44
7.1.60.0350.01132.94
7.1.50.1040.01432.89
7.1.40.0330.01732.53
7.1.30.0360.01832.55
7.1.20.0290.02232.89
7.1.10.0100.01614.95
7.1.00.0100.01114.74

preferences:
31.11 ms | 403 KiB | 5 Q