3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(change(&create(), 'test')); function create() { return ['type' => 'smth', 'property' => 'smth too'] } function &change(&$obj, $prop) { $obj['property'] = $prop; return $obj; }

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.0030.03719.08
5.4.280.0100.07319.15
5.4.270.0070.03319.09
5.4.260.0000.04019.09
5.4.250.0030.06718.80
5.4.240.0200.06019.23
5.4.230.0070.04019.27
5.4.220.0030.08019.07
5.4.210.0030.07718.80
5.4.200.0070.04019.24
5.4.190.0030.04019.20
5.4.180.0130.04319.07
5.4.170.0030.04318.87
5.4.160.0000.04319.09
5.4.150.0070.03719.23
5.4.140.0100.03016.55
5.4.130.0000.04716.25
5.4.120.0030.03716.54
5.4.110.0000.04716.20
5.4.100.0000.03316.43
5.4.90.0030.04016.40
5.4.80.0000.03716.42
5.4.70.0030.04016.46
5.4.60.0070.03716.04
5.4.50.0000.04316.45
5.4.40.0000.05016.36
5.4.30.0070.06016.37
5.4.20.0030.03316.40
5.4.10.0000.03716.38
5.4.00.0000.03715.89
5.3.280.0070.04014.46
5.3.270.0030.05714.54
5.3.260.0000.04314.59
5.3.250.0100.03714.63
5.3.240.0030.05714.55
5.3.230.0030.06314.68
5.3.220.0030.06014.40
5.3.210.0000.07714.40
5.3.200.0030.03714.52
5.3.190.0030.04314.47
5.3.180.0000.04014.51
5.3.170.0030.06714.51
5.3.160.0070.06014.43
5.3.150.0000.06014.39
5.3.140.0030.05014.41
5.3.130.0030.03714.52
5.3.120.0030.03314.41
5.3.110.0000.04014.57
5.3.100.0030.03313.98
5.3.90.0000.03714.13
5.3.80.0030.03313.94
5.3.70.0030.03313.84
5.3.60.0070.03713.88
5.3.50.0000.03313.89
5.3.40.0030.04014.03
5.3.30.0000.04313.87
5.3.20.0030.03013.59
5.3.10.0030.03713.60
5.3.00.0030.04013.46
5.2.170.0030.02712.46
5.2.160.0030.02312.46
5.2.150.0070.02712.46
5.2.140.0000.03012.46
5.2.130.0000.03012.46
5.2.120.0000.03012.46
5.2.110.0000.02712.46
5.2.100.0000.03012.46
5.2.90.0000.03012.46
5.2.80.0000.03012.46
5.2.70.0030.02712.46
5.2.60.0030.02712.46
5.2.50.0030.02712.46
5.2.40.0030.02312.46
5.2.30.0030.03012.46
5.2.20.0030.03012.46
5.2.10.0030.02712.46
5.2.00.0000.02712.46
5.1.60.0000.02312.46
5.1.50.0030.02712.46
5.1.40.0000.02712.46
5.1.30.0000.02712.46
5.1.20.0030.02312.46
5.1.10.0030.02312.46
5.1.00.0030.02312.46
5.0.50.0000.02012.46
5.0.40.0000.02012.46
5.0.30.0030.02712.46
5.0.20.0000.02012.46
5.0.10.0000.02012.46
5.0.00.0000.03312.46
4.4.90.0000.01312.46
4.4.80.0030.01312.46
4.4.70.0000.01312.46
4.4.60.0000.01712.46
4.4.50.0030.01312.46
4.4.40.0000.02712.46
4.4.30.0000.01712.46
4.4.20.0000.01312.46
4.4.10.0000.01312.46
4.4.00.0000.02312.46
4.3.110.0000.01712.46
4.3.100.0000.01312.46
4.3.90.0000.01312.46
4.3.80.0030.02012.46
4.3.70.0000.01312.46
4.3.60.0100.01012.46
4.3.50.0000.01712.46
4.3.40.0000.02312.46
4.3.30.0000.01712.46
4.3.20.0000.01712.46
4.3.10.0000.01712.46
4.3.00.0000.01312.46

preferences:
134.08 ms | 1394 KiB | 7 Q