3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace A { class Foo { } } namespace A { use B\Foo; class Bar { function __construct() { new Foo(); } } } namespace B { class Foo { } }

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.380.0200.05018.55
5.4.370.0100.06018.61
5.4.360.0130.05318.64
5.4.350.0200.05318.53
5.4.340.0200.05718.50
5.4.320.0130.05718.55
5.4.310.0230.04318.66
5.4.300.0170.05018.50
5.4.290.0200.04718.74
5.4.280.0130.05318.52
5.4.270.0130.05718.46
5.4.260.0200.05018.67
5.4.250.0230.05718.63
5.4.240.0170.05718.67
5.4.230.0200.05018.67
5.4.220.0130.06018.52
5.4.210.0170.05718.74
5.4.200.0230.04716.66
5.4.190.0230.04718.54
5.4.180.0330.04318.56
5.4.170.0170.05318.58
5.4.160.0270.07018.62
5.4.150.0400.05318.44
5.4.140.0330.06016.25
5.4.130.0230.06316.23
5.4.120.0170.07016.25
5.4.110.0200.04716.23
5.4.100.0200.04716.28
5.4.90.0130.05316.43
5.4.80.0270.04016.29
5.4.70.0200.05716.16
5.4.60.0200.04716.29
5.4.50.0170.05016.38
5.4.40.0200.05016.24
5.4.30.0230.04316.40
5.4.20.0270.04716.39
5.4.10.0200.05016.28
5.4.00.0230.04315.62
5.3.290.0130.08014.66
5.3.280.0270.04714.76
5.3.270.0270.05714.71
5.3.260.0100.06014.73
5.3.250.0230.04714.64
5.3.240.0100.06014.64
5.3.230.0170.05014.65
5.3.220.0270.04314.59
5.3.210.0170.05714.61
5.3.200.0200.05014.54
5.3.190.0100.05314.76
5.3.180.0230.04714.62
5.3.170.0170.05014.55
5.3.160.0200.04714.55
5.3.150.0230.04714.60
5.3.140.0070.06014.68
5.3.130.0200.06014.56
5.3.120.0200.07014.72
5.3.110.0330.03714.66
5.3.100.0170.05014.23
5.3.90.0200.04714.01
5.3.80.0230.04714.05
5.3.70.0170.05014.00
5.3.60.0200.05314.20
5.3.50.0070.05714.10
5.3.40.0170.05014.04
5.3.30.0130.05013.92
5.3.20.0230.04013.90
5.3.10.0200.05713.66
5.3.00.0100.06713.66
5.2.170.0200.04011.10
5.2.160.0170.04311.10
5.2.150.0200.03711.12
5.2.140.0070.04711.10
5.2.130.0130.04011.07
5.2.120.0070.04711.16
5.2.110.0130.04711.14
5.2.100.0170.04311.06
5.2.90.0330.03711.03
5.2.80.0130.04311.25
5.2.70.0070.05011.05
5.2.60.0170.04011.03
5.2.50.0170.03711.05
5.2.40.0130.04010.98
5.2.30.0100.04011.00
5.2.20.0130.03710.91
5.2.10.0200.03010.88
5.2.00.0100.04010.69
5.1.60.0100.03310.05
5.1.50.0100.03310.13
5.1.40.0070.03710.05
5.1.30.0130.03010.29
5.1.20.0030.04010.40
5.1.10.0100.04010.13
5.1.00.0170.03010.09
5.0.50.0100.0308.54
5.0.40.0100.0278.52
5.0.30.0100.0408.20
5.0.20.0100.0278.23
5.0.10.0100.0278.34
5.0.00.0100.0408.13
4.4.90.0070.0235.90
4.4.80.0030.0275.93
4.4.70.0030.0275.80
4.4.60.0100.0175.82
4.4.50.0130.0175.90
4.4.40.0030.0405.82
4.4.30.0030.0235.88
4.4.20.0000.0275.95
4.4.10.0070.0206.01
4.4.00.0100.0305.90
4.3.110.0100.0235.82
4.3.100.0070.0205.79
4.3.90.0000.0275.81
4.3.80.0100.0305.82
4.3.70.0070.0175.81
4.3.60.0070.0175.83
4.3.50.0000.0275.89
4.3.40.0070.0335.84
4.3.30.0070.0204.63
4.3.20.0030.0234.58
4.3.10.0000.0274.51
4.3.00.0070.03314.44

preferences:
134.1 ms | 993 KiB | 7 Q