3v4l.org

run code in 300+ PHP versions simultaneously
<?php $fruits = array(“more” => “apple”, “less”=>”orange”, “some”=>”banana”); $vegetables = array(“more”=>”carrot”, “less”=>”brussels sprout”,”some”=>”onion”); foreach($fruits as &$value){ $value .= “s”; } foreach($vegetables as &$value){ $value .= “s”; } var_dump($fruits,$vegetables);

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.160.0200.08018.93
5.4.150.0270.06319.11
5.4.140.0200.06316.67
5.4.130.0170.04716.29
5.4.120.0200.07316.28
5.4.110.0330.05316.55
5.4.100.0270.06716.45
5.4.90.0230.06316.56
5.4.80.0170.05016.44
5.4.70.0200.03316.34
5.4.60.0230.07316.39
5.4.50.0330.05316.52
5.4.40.0200.03716.43
5.4.30.0330.06316.52
5.4.20.0200.07316.51
5.4.10.0330.06016.42
5.4.00.0170.06715.79
5.3.260.0230.07714.63
5.3.250.0230.07014.63
5.3.240.0300.06714.63
5.3.230.0200.07314.63
5.3.220.0200.07314.63
5.3.210.0270.07714.63
5.3.200.0200.06714.63
5.3.190.0270.07014.63
5.3.180.0200.05014.63
5.3.170.0200.04314.63
5.3.160.0200.05714.63
5.3.150.0170.07314.63
5.3.140.0230.06014.63
5.3.130.0270.07314.63
5.3.120.0230.05314.63
5.3.110.0230.07014.63
5.3.100.0230.05014.63
5.3.90.0270.06714.63
5.3.80.0230.05714.63
5.3.70.0270.07014.63
5.3.60.0130.06314.63
5.3.50.0200.07314.63
5.3.40.0270.07014.63
5.3.30.0270.04714.63
5.3.20.0200.06714.63
5.3.10.0200.06014.63
5.3.00.0200.05014.63
5.2.170.0200.06014.63
5.2.160.0270.05014.63
5.2.150.0230.05314.63
5.2.140.0170.04314.63
5.2.130.0230.05714.63
5.2.120.0270.05314.63
5.2.110.0130.06314.63
5.2.100.0130.04014.63
5.2.90.0170.06714.63
5.2.80.0230.05714.63
5.2.70.0200.03014.63
5.2.60.0170.05014.63
5.2.50.0200.05014.63
5.2.40.0170.05014.63
5.2.30.0130.06014.63
5.2.20.0200.05714.63
5.2.10.0200.05314.63
5.2.00.0300.02314.63
5.1.60.0130.05714.63
5.1.50.0170.02714.63
5.1.40.0170.04314.63
5.1.30.0230.05014.63
5.1.20.0200.05014.63
5.1.10.0200.04314.63
5.1.00.0170.03714.63
5.0.50.0070.03014.63
5.0.40.0130.03314.63
5.0.30.0070.03014.63
5.0.20.0200.01314.63
5.0.10.0070.03314.63
5.0.00.0170.04714.63
4.4.90.0100.03314.63
4.4.80.0100.03714.63
4.4.70.0070.03014.63
4.4.60.0030.04014.63
4.4.50.0030.02314.63
4.4.40.0070.05714.63
4.4.30.0070.03314.63
4.4.20.0100.02714.63
4.4.10.0100.01714.63
4.4.00.0100.05314.63
4.3.110.0000.02014.63
4.3.100.0030.03314.63
4.3.90.0070.02014.63
4.3.80.0100.03714.63
4.3.70.0100.01714.63
4.3.60.0070.03314.63
4.3.50.0030.02014.63
4.3.40.0070.05714.63
4.3.30.0030.02714.63
4.3.20.0030.02714.63
4.3.10.0070.03714.63
4.3.00.0070.02714.63

preferences:
144.8 ms | 1394 KiB | 7 Q