3v4l.org

run code in 300+ PHP versions simultaneously
<?php $library = [ 'authors' => [ 'john_makkormik@example.com' => [ 'name' => 'Джон Маккормик', 'email' => 'john_makkormik@example.com', 'birthYear' => 1972, ], 'martin_robert@example.com' => [ 'name' => 'Мартин Роберт', 'email' => 'martin_robert@example.com', 'birthYear' => 1957, ], 'charles_levin@example.com' => [ 'name' => 'Чарльз Левин', 'email' => 'charles_levin@example.com', 'birthYear' => 1985, ], ], 'books' => [ [ 'title' => 'Чистый код: создание, анализ и рефакторинг', 'author' => 'martin_robert@example.com', ], [ 'title' => 'Девять алгоритмов, которые изменили будущее', 'author' => 'john_makkormik@example.com', ], [ 'title' => 'Идеальный программист', 'author' => 'martin_robert@example.com', ], [ 'title' => 'Еще одна книга', 'author' => 'charles_levin@example.com', ], ], ]; foreach ($library['books'] as $book) { $author = $library['authors'][$book['author']]; echo $book['title'] . ' - ' . $author['name'] . '(' . $author['email'] . ')' . PHP_EOL; }

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.0100.01018.55
8.5.00.0100.01120.18
8.4.150.0020.00014.05
8.4.140.0100.01117.36
8.4.130.0120.00917.43
8.4.120.0090.01120.59
8.4.110.0110.00922.63
8.4.100.0090.00817.99
8.4.90.0110.00920.51
8.4.80.0030.00517.70
8.4.70.0080.01117.75
8.4.60.0030.00720.37
8.4.50.0130.00618.82
8.4.40.0070.01017.77
8.4.30.0040.00420.28
8.4.20.0030.00617.63
8.4.10.0030.00617.96
8.3.280.0100.01218.28
8.3.270.0070.01216.53
8.3.260.0150.00516.50
8.3.250.0110.00918.80
8.3.240.0130.00516.27
8.3.230.0130.00616.63
8.3.220.0090.00917.33
8.3.210.0130.00716.66
8.3.200.0090.01016.65
8.3.190.0080.01018.96
8.3.180.0120.00716.40
8.3.170.0100.01018.18
8.3.160.0000.00918.50
8.3.150.0040.01516.75
8.3.140.0040.00418.95
8.3.130.0030.00618.27
8.3.120.0040.00418.84
8.3.110.0090.00320.94
8.3.100.0060.00316.66
8.3.90.0110.00726.77
8.3.80.0080.00416.52
8.3.70.0120.00316.63
8.3.60.0150.00018.31
8.3.50.0070.01120.11
8.3.40.0110.00318.84
8.3.30.0140.00018.71
8.3.20.0070.00024.18
8.3.10.0000.00824.66
8.3.00.0050.00326.16
8.2.290.0090.00620.63
8.2.280.0040.00518.37
8.2.270.0000.00918.94
8.2.260.0130.00316.30
8.2.250.0030.00518.37
8.2.240.0090.00618.71
8.2.230.0040.00422.58
8.2.220.0180.00024.06
8.2.210.0080.00026.77
8.2.200.0090.00016.50
8.2.190.0100.00716.88
8.2.180.0100.01025.92
8.2.170.0040.01118.95
8.2.160.0140.00022.96
8.2.150.0070.00025.66
8.2.140.0050.00324.66
8.2.130.0040.00426.16
8.2.120.0000.00826.16
8.2.110.0070.00319.45
8.2.100.0100.00317.78
8.2.90.0000.00819.21
8.2.80.0030.00517.97
8.2.70.0030.00617.75
8.2.60.0060.00318.16
8.2.50.0060.00318.07
8.2.40.0080.00020.01
8.2.30.0040.00418.21
8.2.20.0030.00520.50
8.2.10.0040.00417.65
8.2.00.0000.00819.30
8.1.330.0100.00816.53
8.1.320.0120.00718.00
8.1.310.0040.00418.34
8.1.300.0170.00318.02
8.1.290.0100.00330.84
8.1.280.0040.01125.92
8.1.270.0100.00323.99
8.1.260.0000.00726.35
8.1.250.0050.00328.09
8.1.240.0000.01019.28
8.1.230.0100.00017.52
8.1.220.0030.00517.74
8.1.210.0040.00418.77
8.1.200.0040.00417.22
8.1.190.0040.00417.23
8.1.180.0040.00418.10
8.1.170.0040.00418.40
8.1.160.0030.00518.90
8.1.150.0000.00718.53
8.1.140.0000.00717.38
8.1.130.0050.00220.33
8.1.120.0030.00317.54
8.1.110.0030.00517.40
8.1.100.0030.00817.37
8.1.90.0000.00817.48
8.1.80.0060.00317.48
8.1.70.0030.00317.48
8.1.60.0040.00417.58
8.1.50.0040.00417.41
8.1.40.0080.00017.41
8.1.30.0000.00917.50
8.1.20.0190.00617.49
8.1.10.0160.00917.54
8.1.00.0160.00817.43
8.0.300.0070.00018.77
8.0.290.0000.00716.75
8.0.280.0070.00018.38
8.0.270.0070.00016.79
8.0.260.0040.00418.34
8.0.250.0000.00716.96
8.0.240.0000.00716.95
8.0.230.0030.00316.96
8.0.220.0030.00316.90
8.0.210.0050.00216.82
8.0.200.0000.00716.97
8.0.190.0100.00016.86
8.0.180.0080.00416.86
8.0.170.0060.00316.95
8.0.160.0050.00316.96
8.0.150.0110.00816.75
8.0.140.0130.00616.68
8.0.130.0130.00716.78
8.0.120.0200.00016.78
8.0.110.0130.00716.88
8.0.100.0220.00216.79
8.0.90.0270.00316.92
8.0.80.0120.01116.86
8.0.70.0120.00916.64
8.0.60.0130.00916.88
8.0.50.0200.00416.91
8.0.30.0160.00416.83
8.0.20.0160.00516.83
8.0.10.0200.00016.90
7.4.330.0030.00315.55
7.4.320.0030.00316.54
7.4.300.0000.00616.48
7.4.290.0040.00416.54
7.4.280.0000.00816.52
7.4.270.0180.00416.42
7.4.260.0200.00316.44
7.4.250.0190.00416.33
7.4.240.0130.01016.46
7.4.230.0220.00416.52
7.4.220.0170.00316.57
7.4.210.0130.00616.48
7.4.200.0130.00716.50
7.4.190.0140.00516.55
7.4.180.0200.00016.61
7.4.160.0140.00616.39
7.4.150.0140.00716.42
7.4.140.0170.00216.42
7.4.130.0150.00416.37
7.4.120.0140.00516.29
7.4.110.0150.00516.38
7.4.100.0110.00916.37
7.4.90.0130.00616.45
7.4.80.0150.00516.32
7.4.70.0160.00316.36
7.4.60.0120.00816.29
7.4.50.0140.00516.31
7.4.40.0130.00716.19
7.4.30.0120.00616.37
7.4.20.0140.00616.24
7.4.10.0130.00616.25
7.4.00.0150.00416.25

preferences:
140.24 ms | 403 KiB | 5 Q