3v4l.org

run code in 300+ PHP versions simultaneously
<?php function hello($arr){ if (is_Array($arr)){ foreach($arr as $name){ echo "Hello, $name how its going </br> " } } else { echo "Hello My Friends"; } } $names = array('Nina','Tal','Alexandra','Sofia'); hello($names); ?>

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.380.0200.07319.23
5.4.370.0300.06019.26
5.4.360.0230.08019.21
5.4.350.0300.07018.95
5.4.340.0170.05319.00
5.4.320.0270.05019.17
5.4.310.0270.07019.06
5.4.300.0270.04718.99
5.4.290.0330.03319.09
5.4.280.0230.05719.15
5.4.270.0200.03718.94
5.4.260.0170.04018.99
5.4.250.0230.07019.04
5.4.240.0230.07719.10
5.4.230.0230.05019.12
5.4.220.0070.04719.30
5.4.210.0130.05319.04
5.4.200.0230.04318.94
5.4.190.0330.06318.98
5.4.180.0200.07319.15
5.4.170.0230.03019.16
5.4.160.0130.04018.95
5.4.150.0130.04019.23
5.4.140.0130.03716.67
5.4.130.0170.04016.34
5.4.120.0200.03316.50
5.4.110.0130.03716.35
5.4.100.0170.03316.55
5.4.90.0100.03716.45
5.4.80.0200.03016.44
5.4.70.0130.03716.26
5.4.60.0230.04016.43
5.4.50.0130.03716.61
5.4.40.0100.03716.24
5.4.30.0100.03316.29
5.4.20.0230.03316.39
5.4.10.0170.04016.25
5.4.00.0070.04016.16
5.3.290.0270.04014.75
5.3.280.0170.06014.61
5.3.270.0170.03714.62
5.3.260.0130.03714.63
5.3.250.0170.03314.53
5.3.240.0230.03714.83
5.3.230.0200.03714.61
5.3.220.0100.04014.55
5.3.210.0070.04314.57
5.3.200.0170.03314.73
5.3.190.0170.03314.48
5.3.180.0200.03314.55
5.3.170.0100.04314.68
5.3.160.0030.04314.61
5.3.150.0170.04014.60
5.3.140.0100.03714.56
5.3.130.0170.04314.45
5.3.120.0200.07014.47
5.3.110.0170.03314.46
5.3.100.0100.04014.06
5.3.90.0100.05013.93
5.3.80.0130.03714.11
5.3.70.0100.04014.07
5.3.60.0100.03314.01
5.3.50.0130.03713.86
5.3.40.0100.04013.85
5.3.30.0130.03313.80
5.3.20.0170.03013.60
5.3.10.0070.04013.58
5.3.00.0130.04013.80
5.2.170.0070.03311.97
5.2.160.0130.02711.97
5.2.150.0200.02011.97
5.2.140.0230.03711.97
5.2.130.0130.02311.97
5.2.120.0170.02711.97
5.2.110.0100.03011.97
5.2.100.0100.03011.97
5.2.90.0130.02711.97
5.2.80.0070.03311.97
5.2.70.0170.02311.97
5.2.60.0100.03011.97
5.2.50.0130.04311.97
5.2.40.0130.04711.97
5.2.30.0130.05311.97
5.2.20.0170.05311.97
5.2.10.0100.05311.97
5.2.00.0200.04011.97
5.1.60.0200.03011.97
5.1.50.0130.05011.97
5.1.40.0130.03311.97
5.1.30.0170.04311.97
5.1.20.0170.05011.97
5.1.10.0130.05311.97
5.1.00.0070.03311.97
5.0.50.0070.04011.97
5.0.40.0070.02711.97
5.0.30.0100.04711.97
5.0.20.0100.04011.97
5.0.10.0100.02311.97
5.0.00.0130.05711.97
4.4.90.0070.01711.97
4.4.80.0070.02711.97
4.4.70.0070.03011.97
4.4.60.0100.03311.97
4.4.50.0070.04011.97
4.4.40.0070.04011.97
4.4.30.0070.03311.97
4.4.20.0070.03711.97
4.4.10.0070.03711.97
4.4.00.0100.05011.97
4.3.110.0030.02011.97
4.3.100.0000.03311.97
4.3.90.0030.02011.97
4.3.80.0130.04711.97
4.3.70.0030.03711.97
4.3.60.0100.02011.97
4.3.50.0030.02011.97
4.3.40.0070.05311.97
4.3.30.0030.03011.97
4.3.20.0030.02011.97
4.3.10.0000.04011.97
4.3.00.0070.03011.97

preferences:
142.87 ms | 1394 KiB | 7 Q