3v4l.org

run code in 300+ PHP versions simultaneously
<?php function ok(){ $ret = array("status"=>"ok"); if ( func_num_args() < 1 ){ return $ret; // } $args = func_get_args(); return array_merge($ret,$args); } print_r(ok("lol"=>"test"));

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.0170.08018.80
5.4.260.0030.07019.03
5.4.250.0070.05718.66
5.4.240.0170.08018.75
5.4.230.0200.07019.00
5.4.220.0100.07318.96
5.4.210.0000.07018.79
5.4.200.0130.05718.99
5.4.190.0200.06318.96
5.4.180.0100.06318.90
5.4.170.0170.06018.94
5.4.160.0170.07318.64
5.4.150.0200.05318.95
5.4.140.0100.07016.39
5.4.130.0070.07016.38
5.4.120.0100.04716.41
5.4.110.0170.04716.49
5.4.100.0170.05016.51
5.4.90.0170.04316.39
5.4.80.0100.06716.40
5.4.70.0070.07716.39
5.4.60.0030.08316.49
5.4.50.0200.05716.30
5.4.40.0130.06316.36
5.4.30.0070.07316.48
5.4.20.0100.06016.59
5.4.10.0230.04316.45
5.4.00.0170.06015.90
5.3.280.0230.06314.60
5.3.270.0200.05014.50
5.3.260.0270.05714.69
5.3.250.0130.05714.43
5.3.240.0130.06314.83
5.3.230.0230.06314.76
5.3.220.0300.07314.64
5.3.210.0100.06314.57
5.3.200.0100.06014.64
5.3.190.0170.05714.65
5.3.180.0100.06714.39
5.3.170.0170.05014.54
5.3.160.0130.06714.79
5.3.150.0170.06714.55
5.3.140.0100.07014.56
5.3.130.0170.05714.55
5.3.120.0130.05714.63
5.3.110.0130.05014.71
5.3.100.0130.04714.01
5.3.90.0170.06714.00
5.3.80.0100.05314.08
5.3.70.0300.04714.00
5.3.60.0070.05313.83
5.3.50.0070.06714.10
5.3.40.0070.07314.13
5.3.30.0170.05013.89
5.3.20.0100.05713.77
5.3.10.0170.05313.48
5.3.00.0130.06013.82
5.2.170.0130.04311.31
5.2.160.0200.04711.22
5.2.150.0130.04711.31
5.2.140.0130.05711.09
5.2.130.0030.04311.18
5.2.120.0100.05011.26
5.2.110.0100.04711.18
5.2.100.0130.03711.17
5.2.90.0200.03711.08
5.2.80.0000.04711.07
5.2.70.0030.07011.26
5.2.60.0130.04011.13
5.2.50.0100.05711.11
5.2.40.0070.05710.98
5.2.30.0130.04711.05
5.2.20.0100.04710.96
5.2.10.0030.04711.08
5.2.00.0130.04710.71
5.1.60.0030.04710.24
5.1.50.0130.03710.14
5.1.40.0030.0509.94
5.1.30.0070.03710.49
5.1.20.0170.02710.41
5.1.10.0100.04310.25
5.1.00.0070.04310.16
5.0.50.0070.0378.59
5.0.40.0030.0378.47
5.0.30.0070.0408.29
5.0.20.0130.0278.43
5.0.10.0070.0378.32
5.0.00.0070.0508.24
4.4.90.0030.0237.01
4.4.80.0030.0307.01
4.4.70.0030.0307.01
4.4.60.0030.0307.01
4.4.50.0000.0337.01
4.4.40.0030.0377.01
4.4.30.0130.0307.01
4.4.20.0030.0207.01
4.4.10.0070.0277.01
4.4.00.0000.0377.01
4.3.110.0000.0277.01
4.3.100.0030.0237.01
4.3.90.0070.0237.01
4.3.80.0030.0437.01
4.3.70.0030.0207.01
4.3.60.0030.0307.01
4.3.50.0030.0337.01
4.3.40.0030.0437.01
4.3.30.0000.0337.01
4.3.20.0000.0237.01
4.3.10.0100.0207.01
4.3.00.0070.0206.73

preferences:
140.87 ms | 1394 KiB | 7 Q