3v4l.org

run code in 300+ PHP versions simultaneously
<?php $res[] = array('id' => 1, 'first_name'=>'mike', 'last_name'=>'lastname'); echo $res[]; ?>

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.340.0200.06319.06
5.4.320.0200.07319.24
5.4.310.0100.04018.93
5.4.300.0270.03318.93
5.4.290.0100.04018.91
5.4.280.0200.06719.15
5.4.270.0170.04318.88
5.4.260.0100.04019.21
5.4.250.0130.07019.13
5.4.240.0170.04018.91
5.4.230.0130.04018.92
5.4.220.0130.04719.09
5.4.210.0070.04719.16
5.4.200.0270.06719.07
5.4.190.0130.07318.91
5.4.180.0100.04019.14
5.4.170.0070.05719.23
5.4.160.0170.07018.90
5.4.150.0130.05019.06
5.4.140.0130.04316.21
5.4.130.0130.07316.18
5.4.120.0130.06316.54
5.4.110.0100.04716.34
5.4.100.0130.03716.07
5.4.90.0100.03716.34
5.4.80.0130.03716.40
5.4.70.0170.03716.50
5.4.60.0200.06316.04
5.4.50.0130.03316.40
5.4.40.0100.03716.45
5.4.30.0200.06316.36
5.4.20.0170.07016.35
5.4.10.0230.06016.18
5.4.00.0170.05015.99
5.3.290.0070.04314.52
5.3.280.0070.06314.43
5.3.270.0230.03314.55
5.3.260.0100.04314.46
5.3.250.0030.04714.46
5.3.240.0130.06014.55
5.3.230.0100.04714.43
5.3.220.0170.03714.52
5.3.210.0070.04014.65
5.3.200.0070.04014.41
5.3.190.0130.06714.42
5.3.180.0170.03314.40
5.3.170.0230.04714.47
5.3.160.0230.03314.40
5.3.150.0200.04714.41
5.3.140.0130.06314.55
5.3.130.0170.07314.45
5.3.120.0130.05014.49
5.3.110.0130.08014.64
5.3.100.0130.06013.94
5.3.90.0230.06714.11
5.3.80.0130.04013.86
5.3.70.0130.07313.89
5.3.60.0100.05713.95
5.3.50.0170.03313.79
5.3.40.0200.06313.93
5.3.30.0100.05013.81
5.3.20.0130.05313.63
5.3.10.0070.05713.75
5.3.00.0070.06013.58
5.2.170.0130.05712.23
5.2.160.0130.05712.23
5.2.150.0200.04312.23
5.2.140.0100.06312.23
5.2.130.0070.06712.23
5.2.120.0070.04012.23
5.2.110.0070.04012.23
5.2.100.0130.05312.23
5.2.90.0100.03712.23
5.2.80.0130.05312.23
5.2.70.0100.04012.23
5.2.60.0170.04712.23
5.2.50.0100.05012.23
5.2.40.0100.03012.23
5.2.30.0070.02712.23
5.2.20.0000.03312.23
5.2.10.0070.06012.23
5.2.00.0100.04312.23
5.1.60.0100.03312.23
5.1.50.0030.03012.23
5.1.40.0070.06012.23
5.1.30.0030.02712.23
5.1.20.0070.02312.23
5.1.10.0100.05312.23
5.1.00.0070.05012.23
5.0.50.0030.04312.23
5.0.40.0030.04012.23
5.0.30.0000.03712.23
5.0.20.0000.05012.23
5.0.10.0000.04712.23
5.0.00.0000.03312.23
4.4.90.0000.02012.23
4.4.80.0070.03312.23
4.4.70.0000.04012.23
4.4.60.0070.03312.23
4.4.50.0030.02712.23
4.4.40.0070.02312.23
4.4.30.0000.03712.23
4.4.20.0030.02012.23
4.4.10.0000.03712.23
4.4.00.0000.02712.23
4.3.110.0030.01312.23
4.3.100.0000.03712.23
4.3.90.0070.02712.23
4.3.80.0030.04012.23
4.3.70.0000.02012.23
4.3.60.0000.03712.23
4.3.50.0030.01312.23
4.3.40.0070.05012.23
4.3.30.0030.01312.23
4.3.20.0000.02012.24
4.3.10.0100.01012.24
4.3.00.0030.02312.24

preferences:
169.2 ms | 1394 KiB | 7 Q