3v4l.org

run code in 300+ PHP versions simultaneously
<?php $jobs = [ ['count' => 3, 'yearmonth' => '2019-7'], ['count' => 3, 'yearmonth' => '2019-9'], ['count' => 5, 'yearmonth' => '2019-10'], ]; $dates = [ ['yearmonth' => '2019-6'], ['yearmonth' => '2019-7'], ['yearmonth' => '2019-8'], ['yearmonth' => '2019-9'], ['yearmonth' => '2019-10'], ]; $lookup = array_column($jobs, 'count', 'yearmonth'); foreach ($dates as &$date) { $date['count'] = $lookup[$date['yearmonth']] ?? 0; } var_export($dates);

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.20.0210.00019.63
8.4.10.0100.00619.49
8.3.150.0040.00416.59
8.3.140.0140.00416.53
8.3.130.0110.00718.41
8.3.120.0000.01019.07
8.3.110.0050.00320.94
8.3.100.0100.00024.06
8.3.90.0050.00326.77
8.3.80.0000.00918.43
8.3.70.0090.00616.58
8.3.60.0110.00416.48
8.3.50.0070.00924.47
8.3.40.0110.01118.85
8.3.30.0140.00018.61
8.3.20.0100.00024.18
8.3.10.0050.00224.66
8.3.00.0000.00826.16
8.2.270.0060.01317.32
8.2.260.0090.00618.37
8.2.250.0050.00319.07
8.2.240.0000.00819.05
8.2.230.0080.00022.58
8.2.220.0050.00337.54
8.2.210.0120.00626.77
8.2.200.0060.00316.38
8.2.190.0070.00716.58
8.2.180.0120.00325.92
8.2.170.0070.00719.09
8.2.160.0070.00722.96
8.2.150.0040.00425.66
8.2.140.0000.00824.66
8.2.130.0040.00426.16
8.2.120.0070.00026.35
8.2.110.0090.00320.97
8.2.100.0090.00317.67
8.2.90.0030.00617.88
8.2.80.0000.00919.16
8.2.70.0040.00418.05
8.2.60.0090.00018.16
8.2.50.0040.00418.10
8.2.40.0000.00919.42
8.2.30.0040.00419.30
8.2.20.0080.00017.98
8.2.10.0040.00419.23
8.2.00.0040.00419.38
8.1.310.0000.00818.11
8.1.300.0090.00018.47
8.1.290.0070.00718.88
8.1.280.0060.00825.92
8.1.270.0030.00620.70
8.1.260.0050.00328.09
8.1.250.0040.00428.09
8.1.240.0090.00023.88
8.1.230.0040.00820.82
8.1.220.0040.00417.74
8.1.210.0060.00318.77
8.1.200.0080.00417.48
8.1.190.0000.00817.36
8.1.180.0050.00318.10
8.1.170.0080.00018.50
8.1.160.0000.00719.01
8.1.150.0040.00418.88
8.1.140.0040.00417.44
8.1.130.0030.00320.13
8.1.120.0000.00717.34
8.1.110.0060.00617.48
8.1.100.0050.00217.31
8.1.90.0000.00817.51
8.1.80.0040.00417.36
8.1.70.0070.00017.46
8.1.60.0040.00417.49
8.1.50.0030.00517.53
8.1.40.0040.00417.47
8.1.30.0000.00817.60
8.1.20.0040.00417.54
8.1.10.0030.00617.52
8.1.00.0040.00417.30
8.0.300.0000.00720.13
8.0.290.0040.00416.63
8.0.280.0030.00318.36
8.0.270.0000.00716.82
8.0.260.0060.00018.45
8.0.250.0040.00416.96
8.0.240.0060.00316.85
8.0.230.0030.00316.84
8.0.220.0070.00016.89
8.0.210.0030.00316.87
8.0.200.0070.00016.88
8.0.190.0070.00016.93
8.0.180.0040.00416.86
8.0.170.0000.00916.95
8.0.160.0050.00217.01
8.0.150.0000.00716.78
8.0.140.0060.00316.82
8.0.130.0050.00013.24
8.0.120.0040.00416.84
8.0.110.0000.00716.95
8.0.100.0000.00916.69
8.0.90.0000.00716.78
8.0.80.0070.00716.90
8.0.70.0000.00716.72
8.0.60.0040.00416.91
8.0.50.0000.00716.88
8.0.30.0100.01316.80
8.0.20.0090.01217.02
8.0.10.0000.00716.90
8.0.00.0210.00316.63
7.4.330.0030.00315.55
7.4.320.0030.00316.57
7.4.300.0000.00616.52
7.4.290.0040.00416.54
7.4.280.0050.00316.51
7.4.270.0030.00316.49
7.4.260.0060.00013.26
7.4.250.0030.00316.57
7.4.240.0030.00316.52
7.4.230.0030.00316.48
7.4.220.0040.00316.51
7.4.210.0080.00816.61
7.4.200.0000.00816.39
7.4.130.0030.01416.48
7.4.120.0130.00916.44
7.4.110.0100.00616.63
7.4.100.0100.00616.45
7.4.90.0080.01216.49
7.4.80.0120.00619.39
7.4.70.0090.00616.54
7.4.60.0060.01216.40
7.4.50.0080.00816.07
7.4.40.0060.01016.46
7.4.30.0050.01616.29
7.4.20.0080.00916.36
7.4.10.0100.00516.37
7.4.00.0080.00816.37
7.3.330.0050.00216.10
7.3.320.0050.00013.17
7.3.310.0050.00216.31
7.3.300.0030.00316.17
7.3.290.0030.00316.34
7.3.280.0120.00616.26
7.3.260.0120.00616.48
7.3.240.0110.00616.37
7.3.230.0110.01116.55
7.3.210.0130.01016.23
7.3.200.0130.00616.38
7.3.190.0070.01316.32
7.3.180.0130.00316.49
7.3.170.0050.01116.59
7.3.160.0120.01216.31
7.3.150.0180.00316.27
7.3.140.0090.01016.41
7.3.130.0110.00716.26
7.3.120.0060.01016.21
7.3.110.0130.00316.50
7.3.100.0000.01616.31
7.3.90.0060.00916.49
7.3.80.0110.00616.22
7.3.70.0080.00816.30
7.3.60.0070.01116.39
7.3.50.0110.00416.41
7.3.40.0170.00016.19
7.3.30.0060.00916.41
7.3.20.0110.00616.27
7.3.10.0070.01016.38
7.3.00.0040.01216.33
7.2.330.0100.01016.83
7.2.320.0100.00716.71
7.2.310.0110.00416.64
7.2.300.0100.01016.74
7.2.290.0150.00716.52
7.2.280.0120.00916.75
7.2.270.0100.00716.71
7.2.260.0060.01216.47
7.2.250.0050.01316.33
7.2.240.0120.00616.29
7.2.230.0030.01516.23
7.2.220.0160.00016.42
7.2.210.0130.00316.29
7.2.200.0090.00916.34
7.2.190.0030.01416.47
7.2.180.0110.00716.28
7.2.170.0100.00716.42
7.2.160.0090.00616.39
7.2.150.0130.00616.63
7.2.140.0090.00816.55
7.2.130.0090.00616.54
7.2.120.0110.00616.64
7.2.110.0080.00916.56
7.2.100.0130.00316.57
7.2.90.0120.00616.51
7.2.80.0040.01416.55
7.2.70.0060.01016.59
7.2.60.0080.00816.45
7.2.50.0440.00916.57
7.2.40.0080.00616.56
7.2.30.0040.01416.42
7.2.20.0090.00616.51
7.2.10.0080.00816.47
7.2.00.0070.01016.61

preferences:
107.48 ms | 403 KiB | 5 Q