3v4l.org

run code in 500+ PHP versions simultaneously
<?php // Online PHP compiler to run PHP program online // Print "Start small. Ship something." message echo "Start small. Ship something."; $array = [ 'a' => 'dog', 'b' => 'cat', 'c' => 'cow', 'd' => 'duck', 'e' => 'goose', 'f' => 'elephant' ]; var_dump(array_all($array, function (string $value) { return strlen($value) < 12; })); ?><?php // Online PHP compiler to run PHP program online // Print "Start small. Ship something." message echo "Start small. Ship something."; $array = [ 'a' => 'dog', 'b' => 'cat', 'c' => 'cow', 'd' => 'duck', 'e' => 'goose', 'f' => 'elephant' ]; var_dump(array_all($array, function (string $value) { return strlen($value) < 12; })); ?>

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.70.0080.00816.68
8.5.60.0220.00716.43
8.5.50.0140.00516.39
8.5.40.0230.00516.36
8.5.30.0180.00416.56
8.5.20.0160.00316.64
8.5.10.0160.00416.61
8.5.00.0070.00116.61
8.4.220.0080.00819.50
8.4.210.0150.00519.18
8.4.200.0170.00419.27
8.4.190.0160.00219.31
8.4.180.0140.00519.32
8.4.170.0130.00819.34
8.4.160.0150.00519.26
8.4.150.0150.00519.25
8.4.140.0170.00217.52
8.4.130.0140.00317.39
8.4.120.0110.00817.67
8.4.110.0170.00217.38
8.4.100.0160.00517.29
8.4.90.0170.00417.55
8.4.80.0160.00517.50
8.4.70.0160.00417.74
8.4.60.0140.00517.44
8.4.50.0170.00317.64
8.4.40.0160.00417.60
8.4.30.0150.00517.61
8.4.20.0160.00517.68
8.4.10.0130.00717.54
8.3.310.0180.00418.44
8.3.300.0170.00218.28
8.3.290.0160.00318.12
8.3.280.0170.00318.28
8.3.270.0170.00116.44
8.3.260.0170.00216.36
8.3.250.0120.00616.38
8.3.240.0160.00116.50
8.3.230.0130.00816.57
8.3.220.0130.00516.48
8.3.210.0180.00316.68
8.3.200.0180.00516.43
8.3.190.0130.00416.47
8.3.180.0200.00216.43
8.3.170.0140.00516.40
8.3.160.0140.00716.70
8.3.150.0140.00816.65
8.3.140.0160.00616.51
8.3.130.0130.00516.39
8.3.120.0140.00416.32
8.3.110.0140.00516.54
8.3.100.0170.00216.65
8.3.90.0150.00416.60
8.3.80.0150.00516.67
8.3.70.0150.00416.60
8.3.60.0160.00516.51
8.3.50.0140.00516.57
8.3.40.0150.00617.79
8.3.30.0100.00517.82
8.3.20.0140.00317.67
8.3.10.0130.00217.87
8.3.00.0150.00117.78
8.2.310.0240.00317.85

preferences:
50.39 ms | 754 KiB | 5 Q