3v4l.org

run code in 300+ PHP versions simultaneously
<?php $nu_array = null; $callback = function ( $item ) use(&$nu_array) { $nu_array[] = $item; }; $array = array('a',array('b',1,2),'c',array(,3,4,5,array(6,7,array(8)))); array_walk_recursive($array, $callback); print_r($nu_array); /** Array ( [0] => apple [1] => sky [2] => juice ) **/

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)
5.4.340.0200.04319.14
5.4.320.0230.05719.25
5.4.310.0230.05319.22
5.4.300.0270.05019.09
5.4.290.0300.06718.94
5.4.280.0300.06719.08
5.4.270.0330.06719.08
5.4.260.0370.06319.18
5.4.250.0270.06319.01
5.4.240.0300.06718.98
5.4.230.0270.07019.05
5.4.220.0170.06018.97
5.4.210.0230.06319.23
5.4.200.0170.07318.97
5.4.190.0230.07318.97
5.4.180.0230.06318.93
5.4.170.0230.05018.98
5.4.160.0230.07319.06
5.4.150.0200.07019.20
5.4.140.0300.06716.39
5.4.130.0230.03316.36
5.4.120.0170.05016.51
5.4.110.0130.05016.55
5.4.100.0270.05316.55
5.4.90.0300.06016.26
5.4.80.0270.06316.43
5.4.70.0300.06016.44
5.4.60.0370.06016.43
5.4.50.0270.07016.52
5.4.40.0300.05716.34
5.4.30.0270.04316.23
5.4.20.0230.06316.23
5.4.10.0200.06716.16
5.4.00.0230.06315.86
5.3.290.0170.05714.78
5.3.280.0230.07314.51
5.3.270.0170.08314.62
5.3.260.0200.05314.59
5.3.250.0230.06714.52
5.3.240.0300.06314.82
5.3.230.0270.06014.48
5.3.220.0170.04014.48
5.3.210.0300.05714.72
5.3.200.0270.07014.57
5.3.190.0230.05314.47
5.3.180.0170.05314.61
5.3.170.0200.04714.57
5.3.160.0270.06714.46
5.3.150.0230.07314.57
5.3.140.0300.06014.63
5.3.130.0170.04714.46
5.3.120.0230.07314.44
5.3.110.0230.06714.70
5.3.100.0230.05314.02
5.3.90.0200.04714.09
5.3.80.0200.04313.94
5.3.70.0200.07314.02
5.3.60.0200.07714.01
5.3.50.0270.06713.87
5.3.40.0130.08013.90
5.3.30.0230.04713.82
5.3.20.0300.06313.59
5.3.10.0230.06713.73
5.3.00.0170.04313.57
5.2.170.0200.06012.17
5.2.160.0270.05312.17
5.2.150.0170.06312.17
5.2.140.0200.05712.17
5.2.130.0170.04312.17
5.2.120.0370.03712.17
5.2.110.0200.03312.17
5.2.100.0130.03312.17
5.2.90.0200.02312.17
5.2.80.0100.03312.17
5.2.70.0230.03712.17
5.2.60.0230.06012.17
5.2.50.0170.04312.17
5.2.40.0170.05712.17
5.2.30.0130.03312.17
5.2.20.0230.05012.17
5.2.10.0100.04312.17
5.2.00.0200.05712.17
5.1.60.0230.04712.17
5.1.50.0170.04012.17
5.1.40.0200.04712.17
5.1.30.0270.05012.17
5.1.20.0170.03312.17
5.1.10.0200.05312.17
5.1.00.0200.04712.17
5.0.50.0070.04712.17
5.0.40.0130.02012.17
5.0.30.0130.04312.17
5.0.20.0100.03012.17
5.0.10.0070.04712.17
5.0.00.0070.04712.17
4.4.90.0030.02012.17
4.4.80.0070.03012.17
4.4.70.0130.02712.17
4.4.60.0070.02012.17
4.4.50.0070.02312.17
4.4.40.0130.05012.17
4.4.30.0100.03712.17
4.4.20.0070.02312.17
4.4.10.0130.03012.17
4.4.00.0070.03712.17
4.3.110.0100.02012.17
4.3.100.0100.02712.17
4.3.90.0130.03012.17
4.3.80.0130.04312.17
4.3.70.0070.02312.17
4.3.60.0070.03012.17
4.3.50.0100.02012.17
4.3.40.0100.05012.17
4.3.30.0070.03712.17
4.3.20.0030.03312.17
4.3.10.0030.03012.17
4.3.00.0000.03312.17

preferences:
142.47 ms | 1394 KiB | 7 Q