3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test { function hello ($arg) { return strlen($arg); } } $a = array('b' => array(new Test(), 'hello'); echo $a['b']('123');

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.270.0270.06319.21
5.4.260.0170.08018.99
5.4.250.0270.04319.11
5.4.240.0200.04719.09
5.4.230.0170.04019.08
5.4.220.0270.03719.08
5.4.210.0230.04718.84
5.4.200.0230.03719.08
5.4.190.0170.04319.20
5.4.180.0230.07719.31
5.4.170.0300.06018.81
5.4.160.0230.06719.22
5.4.150.0230.05719.14
5.4.140.0270.06716.57
5.4.130.0230.04316.55
5.4.120.0200.04316.43
5.4.110.0200.06316.63
5.4.100.0270.04316.50
5.4.90.0200.08016.50
5.4.80.0270.04016.39
5.4.70.0300.06016.57
5.4.60.0270.06316.25
5.4.50.0270.06716.55
5.4.40.0230.04016.55
5.4.30.0170.06016.55
5.4.20.0200.07016.42
5.4.10.0270.03716.52
5.4.00.0130.04015.82
5.3.280.0200.03714.75
5.3.270.0200.03714.61
5.3.260.0200.05314.63
5.3.250.0270.07014.52
5.3.240.0200.07714.61
5.3.230.0270.07014.57
5.3.220.0200.07014.65
5.3.210.0270.04714.71
5.3.200.0230.04714.48
5.3.190.0270.07314.57
5.3.180.0270.06714.71
5.3.170.0230.07014.55
5.3.160.0200.06014.49
5.3.150.0300.06314.57
5.3.140.0170.05714.55
5.3.130.0130.06314.66
5.3.120.0200.05014.52
5.3.110.0230.04714.54
5.3.100.0200.04714.01
5.3.90.0170.07313.94
5.3.80.0370.05313.92
5.3.70.0270.04013.92
5.3.60.0230.07313.93
5.3.50.0300.06713.96
5.3.40.0270.05713.85
5.3.30.0270.05014.05
5.3.20.0200.05313.61
5.3.10.0270.06313.56
5.3.00.0330.05713.62
5.2.170.0200.06312.19
5.2.160.0200.03312.19
5.2.150.0230.05712.19
5.2.140.0200.04012.19
5.2.130.0170.03312.19
5.2.120.0230.05312.19
5.2.110.0200.06012.19
5.2.100.0200.05012.19
5.2.90.0270.05312.19
5.2.80.0300.05012.19
5.2.70.0200.06012.19
5.2.60.0170.03012.19
5.2.50.0200.05312.19
5.2.40.0100.04312.19
5.2.30.0200.03312.19
5.2.20.0170.04712.19
5.2.10.0170.04012.19
5.2.00.0100.05312.19
5.1.60.0170.02312.19
5.1.50.0230.04712.19
5.1.40.0200.02712.19
5.1.30.0170.05712.19
5.1.20.0270.02312.19
5.1.10.0170.04712.19
5.1.00.0200.04712.19
5.0.50.0100.03312.19
5.0.40.0070.03012.19
5.0.30.0070.06012.19
5.0.20.0100.02312.19
5.0.10.0100.04012.19
5.0.00.0100.06012.19
4.4.90.0130.03012.19
4.4.80.0100.02712.19
4.4.70.0070.02712.19
4.4.60.0100.02712.19
4.4.50.0100.01712.19
4.4.40.0100.02312.19
4.4.30.0070.02312.19
4.4.20.0100.02312.19
4.4.10.0100.03312.19
4.4.00.0130.04312.19
4.3.110.0070.02012.19
4.3.100.0070.02012.19
4.3.90.0030.02312.19
4.3.80.0100.02712.19
4.3.70.0070.02312.19
4.3.60.0170.02712.19
4.3.50.0100.01712.19
4.3.40.0070.03012.19
4.3.30.0030.02712.19
4.3.20.0030.03712.19
4.3.10.0030.03312.19
4.3.00.0030.02312.19

preferences:
141.25 ms | 1394 KiB | 7 Q