3v4l.org

run code in 300+ PHP versions simultaneously
<?php define('key_name' , 'laruence'); .... //省略很多行代码 $array[key_name] = 2; var_dump($array); ?>

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.130.0100.05016.40
5.4.120.0100.03016.30
5.4.110.0000.05016.43
5.4.100.0070.05316.30
5.4.90.0100.06016.43
5.4.80.0100.06716.50
5.4.70.0070.03716.38
5.4.60.0030.03716.43
5.4.50.0030.05716.36
5.4.40.0200.05716.32
5.4.30.0070.03316.22
5.4.20.0000.05016.65
5.4.10.0070.04316.27
5.4.00.0070.07015.95
5.3.230.0030.05014.42
5.3.220.0030.06014.65
5.3.210.0000.04314.49
5.3.200.0030.03714.58
5.3.190.0070.04314.46
5.3.180.0070.05314.53
5.3.170.0070.07714.57
5.3.160.0070.05014.39
5.3.150.0070.07014.48
5.3.140.0070.07714.48
5.3.130.0070.06314.49
5.3.120.0100.06714.48
5.3.110.0030.08314.51
5.3.100.0030.07013.98
5.3.90.0000.04014.00
5.3.80.0100.06014.11
5.3.70.0070.07313.83
5.3.60.0100.03013.82
5.3.50.0030.04713.91
5.3.40.0030.07713.92
5.3.30.0070.03714.02
5.3.20.0000.04013.61
5.3.10.0030.06713.60
5.3.00.0030.05013.43

preferences:
151.29 ms | 1394 KiB | 7 Q