3v4l.org

run code in 300+ PHP versions simultaneously
<?php $songs = [ ['Michael Jackson' => 'Thriller'], ['Michael Jackson' => 'Rock With You'], ['Teddy Pendergrass' => 'Love TKO'], ['ACDC' => 'Back in Black'] ]; $result = array_merge_recursive(...$songs); var_export($result); echo "\n---\n"; $template = <<<HTML <h2>%s</h2> <ul> <li>%s</li> </ul> HTML; foreach ($result as $artist => $songs) { printf( $template, $artist, implode('</li><li>', (array)$songs) ); }

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.130.0100.00917.72
8.4.120.0130.00720.49
8.4.110.0030.00422.34
8.4.100.0080.01217.69
8.4.90.0130.00718.48
8.4.80.0060.00319.43
8.4.70.0150.00717.76
8.4.60.0080.00418.57
8.4.50.0130.00817.73
8.4.40.0060.01319.31
8.4.30.0030.00620.71
8.4.20.0170.00320.45
8.4.10.0060.00319.43
8.3.260.0110.00916.54
8.3.250.0090.00818.98
8.3.240.0100.01016.49
8.3.230.0050.00416.45
8.3.220.0030.00717.22
8.3.210.0090.00916.49
8.3.200.0050.00316.65
8.3.190.0080.01117.27
8.3.180.0080.00816.49
8.3.170.0120.00617.19
8.3.160.0110.00716.39
8.3.150.0120.00320.91
8.3.140.0040.01220.90
8.3.130.0030.00918.35
8.3.120.0190.00018.91
8.3.110.0070.00720.94
8.3.100.0050.00324.06
8.3.90.0070.00426.77
8.3.80.0030.00616.50
8.3.70.0090.00916.58
8.3.60.0140.00716.38
8.3.50.0120.00920.05
8.3.40.0000.01818.71
8.3.30.0150.00318.58
8.3.20.0050.00324.18
8.3.10.0040.00424.66
8.3.00.0040.01027.12
8.2.290.0110.00820.33
8.2.280.0130.00618.18
8.2.270.0080.00017.00
8.2.260.0040.00418.95
8.2.250.0130.00616.74
8.2.240.0120.00617.19
8.2.230.0080.00022.58
8.2.220.0050.00537.54
8.2.210.0100.00726.77
8.2.200.0060.00316.38
8.2.190.0070.00716.63
8.2.180.0140.00725.92
8.2.170.0070.00718.79
8.2.160.0130.00022.96
8.2.150.0030.00525.66
8.2.140.0000.00824.66
8.2.130.0070.00627.12
8.2.120.0050.00827.12
8.2.110.0100.00424.32
8.2.100.0110.00222.94
8.2.90.0040.00723.15
8.2.80.0040.00723.03
8.2.70.0040.00922.79
8.2.60.0070.00122.92
8.2.50.0040.00422.82
8.2.40.0050.00223.21
8.2.30.0060.00323.08
8.2.20.0080.00023.08
8.2.10.0060.00323.66
8.2.00.0070.00123.72
8.1.330.0140.00420.16
8.1.320.0140.00716.18
8.1.310.0040.00416.69
8.1.300.0080.00817.69
8.1.290.0100.00018.88
8.1.280.0030.01325.92
8.1.270.0080.00022.14
8.1.260.0060.00227.22
8.1.250.0080.00828.09
8.1.240.0050.00425.07
8.1.230.0050.00524.53
8.1.220.0110.00222.94
8.1.210.0000.00823.52
8.1.200.0020.00622.87
8.1.190.0040.00422.72
8.1.180.0040.00423.09
8.1.170.0020.00723.30
8.1.160.0040.00423.48
8.1.150.0080.00023.33
8.1.140.0040.00423.48
8.1.130.0050.00824.14
8.1.120.0050.00322.79
8.1.110.0060.00222.76
8.1.100.0100.00322.80
8.1.90.0080.00622.78
8.1.80.0050.00522.76
8.1.70.0040.00922.72
8.1.60.0050.00322.84
8.1.50.0080.00520.97
8.1.40.0120.00421.00
8.1.30.0130.00221.06
8.1.20.0110.00621.06
8.1.10.0070.00821.03
8.1.00.0110.00520.07
8.0.300.0060.00524.06
8.0.290.0080.00222.36
8.0.280.0030.00423.23
8.0.270.0040.00823.01
8.0.260.0030.00523.29
8.0.250.0030.00522.53
8.0.240.0080.00322.56
8.0.230.0050.00522.55
8.0.220.0030.00522.46
8.0.210.0050.00322.52
8.0.200.0020.00622.49
8.0.190.0020.00622.59
8.0.180.0110.00120.69
8.0.170.0080.00520.66
8.0.160.0110.00220.63
8.0.150.0080.00620.60
8.0.140.0080.00520.61
8.0.130.0080.00318.81
8.0.120.0090.00519.70
8.0.110.0090.00219.71
8.0.100.0060.00519.66
8.0.90.0080.00419.62
8.0.80.0070.00619.64
8.0.70.0090.00319.66
8.0.60.0060.00719.71
8.0.50.0090.00419.61
8.0.30.0080.00319.70
8.0.20.0070.00419.72
8.0.10.0070.00519.79
8.0.00.0080.00319.79
7.4.330.0050.00421.82
7.4.320.0070.00522.32
7.4.300.0160.00422.34
7.4.290.0070.00620.40
7.4.280.0190.00220.40
7.4.270.0100.00520.41
7.4.260.0130.00518.55
7.4.250.0120.00519.43
7.4.240.0160.00319.44
7.4.230.0100.00819.42
7.4.220.0140.00219.46
7.4.210.0120.00419.38
7.4.200.0170.00419.36
7.4.190.0150.00419.50
7.4.180.0130.00519.51
7.4.160.0140.00519.46
7.4.150.0140.00419.39
7.4.140.0140.00619.40
7.4.130.0160.00319.32
7.4.120.0140.00619.35
7.4.110.0120.00519.38
7.4.100.0140.00419.33
7.4.90.0130.00619.29
7.4.80.0120.00619.35
7.4.70.0140.00319.36
7.4.60.0130.00519.28
7.4.50.0160.00419.32
7.4.40.0150.00319.27
7.4.30.0120.00319.40
7.4.20.0160.00419.35
7.4.10.0150.00319.33
7.4.00.0130.00519.38
7.3.330.0150.00519.28
7.3.320.0160.00318.44
7.3.310.0160.00419.25
7.3.300.0170.00219.22
7.3.290.0140.00419.19
7.3.280.0120.00619.23
7.3.270.0150.00319.31
7.3.260.0120.00619.27
7.3.250.0160.00419.21
7.3.240.0120.00919.22
7.3.230.0160.00419.26
7.3.220.0160.00319.13
7.3.210.0110.00419.22
7.3.200.0140.00219.21
7.3.190.0100.00619.25
7.3.180.0140.00319.25
7.3.170.0110.00419.21
7.3.160.0110.00419.20
7.3.150.0130.00219.19
7.3.140.0110.00519.25
7.3.130.0130.00219.26
7.3.120.0120.00319.22
7.3.110.0100.00519.11
7.3.100.0110.00419.12
7.3.90.0120.00619.45
7.3.80.0160.00219.22
7.3.70.0120.00519.32
7.3.60.0140.00619.29
7.3.50.0180.00319.22
7.3.40.0160.00419.28
7.3.30.0150.00519.22
7.3.20.0140.00620.20
7.3.10.0160.00420.17
7.3.00.0150.00720.17

preferences:
27.14 ms | 403 KiB | 5 Q