3v4l.org

run code in 300+ PHP versions simultaneously
<?php $officialGrid = [ ['grid' => TRUE, 'time' => '08:00', 'content' => NULL], ['grid' => TRUE, 'time' => '09:00', 'content' => NULL] ]; $bookings = [ ['grid' => NULL, 'time' => '08:00', 'content' => 'Paul Simon'], ['grid' => NULL, 'time' => '08:00', 'content' => 'Art Garfunkel'], ['grid' => NULL, 'time' => '08:39', 'content' => 'Homer J. Simpson'] ]; $timeSlotsToDisplay = $officialGrid; array_map(function($el) use(&$timeSlotsToDisplay, $officialGrid) { $timeSlotsToDisplay[$el['time']] = array( 'content' => (isset($timeSlotsToDisplay[$el['time']]) ? trim($timeSlotsToDisplay[$el['time']]['content'], ',') . ',' : '') . $el['content'], 'grid' => isset($officialGrid[$el['time']]) ? true : null ); }, $bookings); ksort($timeSlotsToDisplay); var_export($timeSlotsToDisplay);

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.30.0070.00921.38
8.5.20.0080.01020.11
8.5.10.0110.00716.72
8.5.00.0100.01120.26
8.4.180.0120.01019.66
8.4.170.0110.01123.75
8.4.160.0120.00923.93
8.4.150.0080.00516.86
8.4.140.0110.01017.21
8.4.130.0050.00518.66
8.4.120.0080.00924.08
8.4.110.0110.01022.51
8.4.100.0120.00417.79
8.4.90.0130.01018.63
8.4.80.0100.00717.82
8.4.70.0060.00217.91
8.4.60.0070.00418.76
8.4.50.0120.00817.72
8.4.40.0160.00317.84
8.4.30.0030.01618.91
8.4.20.0130.00619.56
8.4.10.0160.00019.50
8.3.300.0150.00720.77
8.3.290.0060.00320.93
8.3.280.0110.01318.38
8.3.270.0110.00916.55
8.3.260.0050.00316.52
8.3.250.0130.00518.90
8.3.240.0100.00916.55
8.3.230.0120.00616.73
8.3.220.0050.00317.34
8.3.210.0060.00216.77
8.3.200.0030.00516.73
8.3.190.0040.00417.19
8.3.180.0100.00817.19
8.3.170.0120.00620.49
8.3.160.0000.00917.13
8.3.150.0030.01717.20
8.3.140.0110.00718.95
8.3.130.0080.00018.37
8.3.120.0040.00418.93
8.3.110.0060.00320.94
8.3.100.0000.00818.46
8.3.90.0030.00526.77
8.3.80.0060.00317.97
8.3.70.0070.00718.43
8.3.60.0100.01325.92
8.3.50.0110.01125.92
8.3.40.0320.01425.92
8.3.30.0320.01125.92
8.3.20.0380.00925.92
8.3.10.0370.00625.92
8.3.00.0420.00625.92
8.2.300.0110.01120.40
8.2.290.0090.00620.46
8.2.280.0090.01018.42
8.2.270.0100.01017.25
8.2.260.0090.00618.36
8.2.250.0030.00516.91
8.2.240.0060.00318.77
8.2.230.0030.00622.58
8.2.220.0060.00324.06
8.2.210.0060.01226.77
8.2.200.0000.00916.75
8.2.190.0070.01116.58
8.2.180.0360.00925.92
8.2.170.0350.01425.92
8.2.160.0290.01225.92
8.2.150.0210.01525.92
8.2.140.0370.00925.92
8.2.130.0450.00425.92
8.2.120.0330.01325.92
8.2.110.0340.01025.92
8.2.100.0360.00925.92
8.2.90.0430.00425.92
8.2.80.0320.01425.92
8.2.70.0320.01425.92
8.2.60.0390.00825.92
8.2.50.0280.02025.92
8.2.40.0350.00925.92
8.2.30.0360.00825.92
8.2.20.0340.01025.92
8.2.10.0460.00925.92
8.2.00.0310.01725.92
8.1.340.0120.00817.45
8.1.330.0120.00721.84
8.1.320.0140.00516.00
8.1.310.0040.00416.93
8.1.300.0040.00419.75
8.1.290.0030.00730.84
8.1.280.0320.01125.92
8.1.270.0310.01325.92
8.1.260.0310.00825.92
8.1.250.0320.00925.92
8.1.240.0320.01125.92
8.1.230.0370.00325.92
8.1.220.0410.00625.92
8.1.210.0330.01025.92
8.1.200.0340.00925.92
8.1.190.0340.00925.92
8.1.180.0260.02225.92
8.1.170.0410.00925.92
8.1.160.0370.00725.92
8.1.150.0350.01325.92
8.1.140.0400.00625.92
8.1.130.0410.00325.92
8.1.120.0370.00325.92
8.1.110.0300.01025.92
8.1.100.0360.00025.92
8.1.90.0370.01125.92
8.1.80.0430.00325.92
8.1.70.0390.00725.92
8.1.60.0320.00925.92
8.1.50.0360.01125.92
8.1.40.0360.01325.92
8.1.30.0370.00325.92
8.1.20.0410.00625.92
8.1.10.0320.01425.92
8.1.00.0410.00625.92

preferences:
78.84 ms | 1021 KiB | 5 Q