3v4l.org

run code in 300+ PHP versions simultaneously
<?php $input = [ ['filename' => 'a.php', 'description' => 'foo'], ['filename' => 'b.php', 'description' => 'fooey'], ['filename' => 'c.php', 'description' => 'bar'], ['filename' => 'd.php', 'description' => 'berry'], ['filename' => 'e.php', 'description' => 'buoy'], ['filename' => 'f.php', 'description' => 'barf'], ['filename' => 'g.php', 'description' => 'food'], ['filename' => 'h.php', 'description' => 'foodie'], ['filename' => 'i.php', 'description' => 'boof'], ['filename' => 'j.php', 'description' => 'boogey'], ['filename' => 'k.php', 'description' => 'fudge'], ['filename' => 'l.php', 'description' => 'fudgey'], ['filename' => 'm.php', 'description' => 'barge'], ['filename' => 'n.php', 'description' => 'buggy'], ['filename' => 'o.php', 'description' => 'booger'], ['filename' => 'p.php', 'description' => 'foobar'], ['filename' => 'q.php', 'description' => 'fubar'], ['filename' => 'r.php', 'description' => 'goof'], ['filename' => 's.php', 'description' => 'goofey'], ['filename' => 't.php', 'description' => 'boofey'], ]; $randoms = []; foreach (array_rand($input, 10) as $key) { $randoms[] = $input[$key]; } var_export($randoms);

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.1.80.0040.00417.46
8.1.70.0080.00717.28
8.1.60.0090.00817.54
8.1.50.0150.00217.49
8.1.40.0100.00717.47
8.1.30.0090.00917.62
8.1.20.0060.01117.59
8.1.10.0140.00417.54
8.1.00.0090.00917.33
8.0.210.0040.00716.87
8.0.200.0120.00316.94
8.0.190.0140.00316.80
8.0.180.0160.00016.76
8.0.170.0140.00016.79
8.0.160.0110.00416.71
8.0.150.0150.00016.83
8.0.140.0100.00316.85
8.0.130.0140.00016.79
8.0.120.0090.00616.87
8.0.110.0140.00016.91
8.0.100.0090.00816.83
8.0.90.0070.00816.79
8.0.80.0090.00616.78
8.0.70.0120.00216.75
8.0.60.0110.00416.77
8.0.50.0120.00216.76
8.0.30.0050.00616.88
8.0.20.0040.00816.83
8.0.10.0060.00616.96
7.4.300.0090.00016.48
7.4.290.0080.00416.51
7.4.280.0150.00016.47
7.4.270.0100.00316.53
7.4.260.0080.00816.44
7.4.250.0080.00516.39
7.4.240.0090.00216.47
7.4.230.0140.00316.59
7.4.220.0060.00716.39
7.4.210.0040.00716.50
7.4.200.0130.00016.47
7.4.190.0140.00016.62
7.4.180.0120.00016.62
7.4.160.0040.00816.57
7.4.150.0110.00016.36
7.4.140.0070.00716.50
7.4.130.0090.00416.24
7.4.120.0100.00516.26
7.4.110.0070.00716.36
7.4.100.0140.00016.49
7.4.90.0100.00316.32
7.4.80.0120.00216.52
7.4.70.0090.00516.34
7.4.60.0110.00316.25
7.4.50.0110.00416.40
7.4.40.0070.00716.45
7.4.30.0140.00016.29
7.4.20.0030.01116.50
7.4.10.0130.00016.40
7.4.00.0070.00716.32

preferences:
45.87 ms | 403 KiB | 5 Q