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'], ]; var_export( array_intersect_key( $input, array_flip( array_rand($input, 10) ) ) );

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.37
8.1.70.0120.00317.16
8.1.60.0150.00317.36
8.1.50.0180.00017.41
8.1.40.0100.00717.46
8.1.30.0180.00017.54
8.1.20.0180.00017.55
8.1.10.0110.00617.45
8.1.00.0150.00317.35
8.0.210.0080.00316.68
8.0.200.0050.01016.84
8.0.190.0120.00316.87
8.0.180.0090.00616.86
8.0.170.0130.00316.85
8.0.160.0050.01016.78
8.0.150.0100.00516.72
8.0.140.0140.00016.66
8.0.130.0090.00516.84
8.0.120.0050.01016.78
8.0.110.0110.00416.73
8.0.100.0120.00416.78
8.0.90.0090.00616.71
8.0.80.0100.00516.77
8.0.70.0070.00716.69
8.0.60.0120.00316.76
8.0.50.0110.00416.56
8.0.30.0140.00016.71
8.0.20.0060.00616.89
8.0.10.0120.00316.99
7.4.300.0050.00516.45
7.4.290.0130.00016.37
7.4.280.0080.00816.37
7.4.270.0110.00516.51
7.4.260.0060.00616.50
7.4.250.0130.00316.49
7.4.240.0000.01116.38
7.4.230.0140.00316.54
7.4.220.0090.00416.53
7.4.210.0060.00516.44
7.4.200.0090.00316.55
7.4.190.0060.00616.53
7.4.180.0110.00316.53
7.4.160.0090.00316.48
7.4.150.0070.00716.50
7.4.140.0060.00616.26
7.4.130.0140.00016.33
7.4.120.0070.00716.35
7.4.110.0110.00316.40
7.4.100.0110.00416.44
7.4.90.0060.00616.38
7.4.80.0070.00716.40
7.4.70.0090.00616.34
7.4.60.0110.00316.41
7.4.50.0110.00416.25
7.4.40.0060.00616.30
7.4.30.0090.00416.34
7.4.20.0030.01116.35
7.4.10.0130.00016.34
7.4.00.0090.00416.33

preferences:
29.47 ms | 403 KiB | 5 Q