3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = ["one", "two", "three"]; $fields = is_array($arr) ? explode("," $arr) : $arr; var_dump($fields);

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)
7.0.10.0070.09020.19
7.0.00.0030.08320.20
5.6.160.0000.05320.44
5.6.150.0100.07718.15
5.6.140.0030.07318.15
5.6.130.0030.08018.23
5.6.120.0070.05321.11
5.6.110.0030.04020.89
5.6.100.0000.07021.12
5.6.90.0100.06021.03
5.6.80.0130.06720.52
5.5.300.0070.08317.99
5.5.290.0070.08017.97
5.5.280.0070.08320.76
5.5.270.0030.08720.75
5.5.260.0030.08720.67
5.5.250.0070.08020.58
5.5.240.0130.07020.25

preferences:
142.96 ms | 1394 KiB | 7 Q