3v4l.org

run code in 300+ PHP versions simultaneously
<?php $sort = array(); $sort[20 => 'fuu']; $sort[30 => 'xxx']; var_dump($sort);

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.390.0300.04318.85
5.4.380.0270.07318.80
5.4.370.0200.05318.68
5.4.360.0170.06318.69
5.4.350.0200.06318.75
5.4.340.0170.06018.75
5.4.320.0270.05718.57
5.4.310.0200.06718.78
5.4.300.0270.04718.57
5.4.290.0270.05018.55
5.4.280.0170.05718.60
5.4.270.0130.05718.78
5.4.260.0170.05718.55
5.4.250.0330.04718.57
5.4.240.0230.07318.83
5.4.230.0130.07018.56
5.4.220.0200.06018.56
5.4.210.0270.05018.76
5.4.200.0200.05316.78
5.4.190.0300.05318.62
5.4.180.0230.05318.50
5.4.170.0270.07018.77
5.4.160.0170.07318.43
5.4.150.0200.05318.49
5.4.140.0170.05716.20
5.4.130.0270.04716.32
5.4.120.0230.04716.28
5.4.110.0330.05316.25
5.4.100.0230.05716.25
5.4.90.0230.05016.31
5.4.80.0300.04716.30
5.4.70.0230.05016.26
5.4.60.0170.05316.29
5.4.50.0230.04316.16
5.4.40.0130.06316.26
5.4.30.0200.05016.21
5.4.20.0230.04716.28
5.4.10.0230.05016.39
5.4.00.0170.05715.73
5.3.290.0230.07014.65
5.3.280.0330.06014.68
5.3.270.0330.06314.53
5.3.260.0230.05714.59
5.3.250.0170.07014.58
5.3.240.0100.06314.65
5.3.230.0200.05014.51
5.3.220.0370.04714.66
5.3.210.0200.06014.62
5.3.200.0100.07014.50
5.3.190.0100.06014.50
5.3.180.0130.06014.66
5.3.170.0270.04714.55
5.3.160.0270.04314.54
5.3.150.0200.06014.64
5.3.140.0200.05714.47
5.3.130.0130.05714.50
5.3.120.0130.06314.53
5.3.110.0230.05014.48
5.3.100.0200.05313.95
5.3.90.0300.04714.12
5.3.80.0200.05714.00
5.3.70.0100.05713.99
5.3.60.0130.05714.04
5.3.50.0170.06313.93
5.3.40.0330.05713.98
5.3.30.0200.07313.94
5.3.20.0200.05013.68
5.3.10.0200.04713.75
5.3.00.0200.05313.63
5.2.170.0100.05011.11
5.2.160.0130.04311.20
5.2.150.0100.05011.11
5.2.140.0170.05711.12
5.2.130.0130.04311.10
5.2.120.0230.03311.15
5.2.110.0170.04311.09
5.2.100.0170.04311.11
5.2.90.0070.05011.05
5.2.80.0100.05311.10
5.2.70.0170.04311.07
5.2.60.0130.04711.18
5.2.50.0200.04710.97
5.2.40.0100.04311.14
5.2.30.0130.04311.02
5.2.20.0070.04711.07
5.2.10.0130.05010.96
5.2.00.0170.04010.73
5.1.60.0170.0309.99
5.1.50.0070.04310.02
5.1.40.0030.04310.10
5.1.30.0170.03310.42
5.1.20.0100.04010.51
5.1.10.0230.02710.09
5.1.00.0130.03710.18
5.0.50.0070.0308.66
5.0.40.0000.0338.38
5.0.30.0170.0408.21
5.0.20.0070.0338.18
5.0.10.0100.0378.16
5.0.00.0100.0408.38
4.4.90.0070.0235.91
4.4.80.0000.0275.91
4.4.70.0070.0205.93
4.4.60.0030.0275.91
4.4.50.0030.0275.91
4.4.40.0100.0335.91
4.4.30.0070.0205.88
4.4.20.0070.0235.98
4.4.10.0070.0205.97
4.4.00.0030.0405.91
4.3.110.0070.0305.76
4.3.100.0070.0305.75
4.3.90.0030.0235.77
4.3.80.0100.0305.86
4.3.70.0030.0235.81
4.3.60.0070.0205.80
4.3.50.0070.0235.87
4.3.40.0070.0435.76
4.3.30.0030.0234.56
4.3.20.0030.0234.54
4.3.10.0030.0234.46
4.3.00.0070.0238.34

preferences:
144.04 ms | 1421 KiB | 7 Q