3v4l.org

run code in 300+ PHP versions simultaneously
<?php $hotel = [ [ 'name' => 'hotel one', 'hotel_price' => '100', 'hotel_child_price' => '50' ], [ 'name' => 'hotel two', 'hotel_price' => '200', 'hotel_child_price' => '100' ], [ 'name' => 'hotel three', 'hotel_price' => '300', 'hotel_child_price' => '200' ], ]; $user_selected_hotel = [ [ 'name' => 'hotel one', 'hotel_price' => '100' ], [ 'name' => 'hotel three', 'hotel_price' => '300' ] ]; var_export( array_sum( array_intersect_key( array_column($hotel, 'hotel_child_price', 'name'), array_column($user_selected_hotel, null, 'name') ) ) );

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.5.10.0140.00416.52
8.5.00.0130.00919.80
8.4.150.0020.00114.05
8.4.140.0130.00817.69
8.4.130.0060.00317.66
8.4.120.0110.00822.20
8.4.110.0050.00818.78
8.4.100.0120.00717.69
8.4.90.0070.00217.61
8.4.80.0110.00919.33
8.4.70.0110.00918.00
8.4.60.0100.00618.69
8.4.50.0120.00818.67
8.4.40.0030.01217.22
8.4.30.0080.01120.41
8.4.20.0080.00018.05
8.4.10.0090.00919.36
8.3.280.0080.01120.04
8.3.270.0100.01116.75
8.3.260.0110.00816.66
8.3.250.0120.00718.56
8.3.240.0120.00717.01
8.3.230.0110.00916.34
8.3.220.0140.00418.32
8.3.210.0120.00718.27
8.3.200.0050.00416.33
8.3.190.0040.00517.24
8.3.180.0120.00717.21
8.3.170.0090.00918.84
8.3.160.0040.00418.32
8.3.150.0110.00717.21
8.3.140.0000.01516.37
8.3.130.0030.00916.42
8.3.120.0080.00018.66
8.3.110.0140.00420.94
8.3.100.0160.00316.64
8.3.90.0070.00018.54
8.3.80.0040.00718.31
8.3.70.0070.01016.47
8.3.60.0140.00716.50
8.3.50.0140.00716.35
8.3.40.0060.01220.32
8.3.30.0120.00921.65
8.3.20.0100.00724.18
8.3.10.0100.01024.66
8.3.00.0140.00326.16
8.2.290.0130.00719.03
8.2.280.0120.00718.33
8.2.270.0090.00916.88
8.2.260.0000.00916.38
8.2.250.0000.00920.31
8.2.240.0030.00617.10
8.2.230.0100.01022.58
8.2.220.0120.00924.06
8.2.210.0100.00726.77
8.2.200.0060.00618.30
8.2.190.0110.00416.58
8.2.180.0110.00716.50
8.2.170.0140.00718.79
8.2.160.0070.00722.96
8.2.150.0140.00325.66
8.2.140.0040.00424.66
8.2.130.0150.00426.16
8.2.120.0040.00419.77
8.2.110.0140.00720.36
8.2.100.0140.00718.97
8.2.90.0110.01118.59
8.2.80.0130.01018.59
8.2.70.0110.01118.79
8.2.60.0130.01318.71
8.2.50.0210.00618.72
8.2.40.0090.01618.66
8.2.30.0080.01618.50
8.2.20.0170.00718.64
8.2.10.0100.01319.07
8.2.00.0080.01619.03
8.1.330.0090.00916.63
8.1.320.0150.00317.77
8.1.310.0000.01017.87
8.1.300.0030.00516.90
8.1.290.0070.00418.88
8.1.280.0070.01025.92
8.1.270.0080.00023.99
8.1.260.0130.00726.35
8.1.250.0090.00328.09
8.1.240.0100.01418.55
8.1.230.0080.00818.48
8.1.220.0070.00218.40
8.1.210.0130.01019.88
8.1.200.0160.00618.48
8.1.190.0060.00318.23
8.1.180.0110.00418.03
8.1.170.0110.01118.32
8.1.160.0090.00418.79
8.1.150.0220.00620.42
8.1.140.0080.02318.35
8.1.130.0260.00318.29
8.1.120.0170.01418.42
8.1.110.0270.00018.51
8.1.100.0160.01018.42
8.1.90.0130.00618.48
8.1.80.0090.01218.31
8.1.70.0100.01018.80
8.1.60.0170.00318.63
8.1.50.0100.01018.69
8.1.40.0110.00718.92
8.1.30.0140.00718.86
8.1.20.0180.00318.54
8.1.10.0160.00318.63
8.1.00.0100.01018.46
8.0.300.0140.00717.77
8.0.290.0100.00717.82
8.0.280.0040.00417.73
8.0.270.0060.00317.77
8.0.260.0110.00017.69
8.0.250.0040.00717.84
8.0.240.0130.00317.88
8.0.230.0000.00918.40
8.0.220.0150.00317.65
8.0.210.0030.01017.82
8.0.200.0060.00317.69
8.0.190.0040.00417.71
8.0.180.0120.00017.59
8.0.170.0090.00017.71
8.0.160.0030.00717.71
8.0.150.0060.00317.73
8.0.140.0030.00617.84
8.0.130.0030.00717.66
8.0.120.0040.00817.94
8.0.110.0070.00317.87
8.0.100.0100.00017.65
8.0.90.0060.00317.72
8.0.80.0100.00017.79
8.0.70.0030.00717.75
8.0.60.0000.00917.71
8.0.50.0060.00317.76
8.0.30.0060.00317.83
8.0.20.0030.00617.88
8.0.10.0050.00518.00

preferences:
36.83 ms | 403 KiB | 5 Q