3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Question { public static $variable1 = array ( "key" => array( "label" => "A label.", "desc" => "A desc." ) ); public static $variable2 = array( "flower" => array( // Pass by reference within a class? "key" => $this->&$variable1["key"] ) ); } var_dump(Question::$variable2);

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.290.0120.09512.50
5.4.280.0210.09512.41
5.4.270.0110.07212.40
5.4.260.0130.08112.41
5.4.250.0190.06312.41
5.4.240.0130.06812.40
5.4.230.0070.07212.39
5.4.220.0200.07312.40
5.4.210.0110.07612.39
5.4.200.0090.05612.39
5.4.190.0180.08112.39
5.4.180.0100.05812.39
5.4.170.0140.08412.40
5.4.160.0230.07512.40
5.4.150.0180.07712.39
5.4.140.0220.07712.09
5.4.130.0140.08212.06
5.4.120.0140.07212.03
5.4.110.0160.09412.03
5.4.100.0090.05112.02
5.4.90.0100.08512.02
5.4.80.0140.05612.02
5.4.70.0080.05712.02
5.4.60.0080.07012.02
5.4.50.0340.12212.02
5.4.40.0210.06312.01
5.4.30.0160.06312.00
5.4.20.0050.05912.00
5.4.10.0130.05312.00
5.4.00.0250.06811.49
5.3.280.0090.07012.71
5.3.270.0260.09212.73
5.3.260.0100.05612.72
5.3.250.0100.05612.72
5.3.240.0170.08512.72
5.3.230.0120.05712.71
5.3.220.0150.10212.68
5.3.210.0130.10212.68
5.3.200.0130.05812.68
5.3.190.0180.12512.68
5.3.180.0100.05712.67
5.3.170.0190.06512.66
5.3.160.0160.06112.68
5.3.150.0120.07212.67
5.3.140.0070.06312.66
5.3.130.0160.07612.66
5.3.120.0120.07412.66
5.3.110.0220.07412.66
5.3.100.0080.06612.12
5.3.90.0100.06212.10
5.3.80.0080.05712.09
5.3.70.0110.07012.09
5.3.60.0190.07512.07
5.3.50.0120.05312.02
5.3.40.0150.06912.02
5.3.30.0180.06811.98
5.3.20.0060.04611.76
5.3.10.0140.05611.73
5.3.00.0110.05411.71

preferences:
139.07 ms | 1394 KiB | 7 Q