3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array=new array( 50 => 100, 100 => 50, 150 => 200, 200 => 300); var_dump($array);

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.0300.04319.14
5.4.260.0230.04019.20
5.4.250.0230.04019.05
5.4.240.0230.03718.94
5.4.230.0230.04019.30
5.4.220.0300.04018.83
5.4.210.0300.03318.84
5.4.200.0300.03319.30
5.4.190.0270.03719.14
5.4.180.0300.04719.19
5.4.170.0300.03319.04
5.4.160.0200.04019.06
5.4.150.0270.03719.05
5.4.140.0270.03316.75
5.4.130.0300.03316.50
5.4.120.0230.03716.66
5.4.110.0230.03716.55
5.4.100.0270.03716.55
5.4.90.0230.04016.54
5.4.80.0230.03716.50
5.4.70.0330.04316.50
5.4.60.0270.03316.42
5.4.50.0370.03016.16
5.4.40.0300.03016.48
5.4.30.0270.03316.24
5.4.20.0270.03316.51
5.4.10.0200.04016.54
5.4.00.0300.03016.11
5.3.280.0270.03714.45
5.3.270.0300.03314.46
5.3.260.0200.04314.45
5.3.250.0370.02314.46
5.3.240.0330.04014.50
5.3.230.0230.03714.55
5.3.220.0270.03714.50
5.3.210.0300.04314.52
5.3.200.0330.03314.47
5.3.190.0200.04014.41
5.3.180.0270.03714.42
5.3.170.0300.05314.52
5.3.160.0270.05014.40
5.3.150.0270.06314.61
5.3.140.0370.07714.50
5.3.130.0270.03714.39
5.3.120.0270.03714.41
5.3.110.0300.03314.50
5.3.100.0300.05013.88
5.3.90.0270.07013.90
5.3.80.0400.06013.81
5.3.70.0330.06013.86
5.3.60.0270.04314.00
5.3.50.0270.03313.74
5.3.40.0270.03313.89
5.3.30.0530.03013.93
5.3.20.0230.04713.65
5.3.10.0530.05313.61
5.3.00.0330.05013.48
5.2.170.0270.03711.98
5.2.160.0300.04711.98
5.2.150.0270.06011.98
5.2.140.0270.05711.98
5.2.130.0200.04011.98
5.2.120.0270.04311.98
5.2.110.0300.03311.98
5.2.100.0270.04011.98
5.2.90.0330.03311.98
5.2.80.0300.05011.98
5.2.70.0370.04311.98
5.2.60.0370.05011.98
5.2.50.0300.06011.98
5.2.40.0330.02711.98
5.2.30.0300.03311.98
5.2.20.0270.03311.98
5.2.10.0270.05711.98
5.2.00.0230.04311.98
5.1.60.0170.03011.98
5.1.50.0300.04711.98
5.1.40.0270.04011.98
5.1.30.0270.05311.98
5.1.20.0270.03711.98
5.1.10.0200.05711.98
5.1.00.0270.05311.98
5.0.50.0200.03311.98
5.0.40.0200.03711.98
5.0.30.0200.03711.98
5.0.20.0130.04311.98
5.0.10.0170.03711.98
5.0.00.0170.06011.98
4.4.90.0170.03311.98
4.4.80.0130.02711.98
4.4.70.0200.02711.98
4.4.60.0130.03311.98
4.4.50.0170.03711.98
4.4.40.0170.04311.98
4.4.30.0130.02011.98
4.4.20.0130.03311.98
4.4.10.0130.02011.98
4.4.00.0130.05011.98
4.3.110.0170.03311.98
4.3.100.0130.03311.98
4.3.90.0130.02311.98
4.3.80.0100.05011.98
4.3.70.0170.02711.98
4.3.60.0100.04011.98
4.3.50.0170.01711.98
4.3.40.0100.02711.98
4.3.30.0030.02711.98
4.3.20.0070.01711.98
4.3.10.0030.03011.98
4.3.00.0130.03011.98

preferences:
137.23 ms | 1394 KiB | 7 Q