3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace One\Thing\Foo { class A { function __construct() { echo "I am class A in namespace One\Thing\Foo\n"; } } function b() { echo "I am function b in namespace One\Thing\Foo\n"; } } namespace Two\My\Foo { class A { function __construct() { echo "I am class A in namespace Two\My\Foo\n"; } } function b() { echo "I am function b in namespace Two\My\Foo\n"; } } namespace Two\My { use One\Thing\Foo; new Foo\A; Foo\b(); new namespace\Foo\A; namespace\Foo\b(); }

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)
8.4.120.0050.00424.35
8.4.110.0110.00918.95
8.4.100.0110.01017.52
8.4.90.0100.01018.68
8.4.80.0110.00917.62
8.4.70.0120.00817.93
8.4.60.0160.00620.50
8.4.50.0170.00419.36
8.4.40.0140.00617.70
8.4.30.0040.01520.45
8.4.20.0120.00821.34
8.4.10.0030.00519.50
8.3.250.0130.00818.80
8.3.240.0120.00617.19
8.3.230.0120.00716.25
8.3.220.0100.00818.81
8.3.210.0110.00816.40
8.3.200.0050.00416.58
8.3.190.0110.00717.11
8.3.180.0050.00316.53
8.3.170.0100.00717.20
8.3.160.0110.00718.29
8.3.150.0140.00716.48
8.3.140.0000.01416.72
8.3.130.0050.00216.49
8.3.120.0030.00620.78
8.3.110.0000.00818.43
8.3.100.0450.00337.54
8.3.90.0420.00637.54
8.3.80.0430.00937.54
8.3.70.0470.00737.54
8.3.60.0320.02137.54
8.3.50.0360.01437.54
8.3.40.0370.00537.54
8.3.30.0290.01337.54
8.3.20.0300.01337.54
8.3.10.0210.01437.54
8.3.00.0420.00437.54
8.2.290.0030.00520.51
8.2.280.0110.01018.52
8.2.270.0120.00617.98
8.2.260.0070.01016.54
8.2.250.0130.00918.20
8.2.240.0110.00718.56
8.2.230.0030.00820.94
8.2.220.0310.00837.54
8.2.210.0330.00637.54
8.2.200.0330.00837.54
8.2.190.0340.00737.54
8.2.180.0370.00337.54
8.2.170.0400.00337.54
8.2.160.0310.01237.54
8.2.150.0320.01437.54
8.2.140.0340.01437.54
8.2.130.0300.00637.54
8.2.120.0380.00737.54
8.2.110.0290.00737.54
8.2.100.0320.00437.54
8.2.90.0320.00837.54
8.2.80.0350.00637.54
8.2.70.0280.01637.54
8.2.60.0300.00937.54
8.2.50.0270.00037.54
8.2.40.0250.00737.54
8.2.30.0240.00637.54
8.2.20.0140.00737.54
8.2.10.0280.00437.54
8.2.00.0250.00437.54
8.1.330.0130.00721.70
8.1.320.0110.00816.17
8.1.310.0150.00316.16
8.1.300.0090.00917.68
8.1.290.0200.00337.54
8.1.280.0220.00637.54
8.1.270.0250.00437.54
8.1.260.0370.00437.54
8.1.250.0290.00737.54
8.1.240.0280.00937.54
8.1.230.0270.01137.54
8.1.220.0250.01337.54
8.1.210.0250.00737.54
8.1.200.0260.00637.54
8.1.190.0250.00737.54
8.1.180.0270.00537.54
8.1.170.0220.00437.54
8.1.160.0190.00437.54
8.1.150.0210.01837.54
8.1.140.0260.00037.54
8.1.130.0270.00037.54
8.1.120.0300.00437.54
8.1.110.0210.00537.54
8.1.100.0080.01137.54
8.1.90.0150.00437.54
8.1.80.0150.00337.54
8.1.70.0180.00037.54
8.1.60.0150.00537.54
8.1.50.0170.00237.54
8.1.40.0130.00837.54
8.1.30.0220.00037.54
8.1.20.0200.00037.54
8.1.10.0130.00737.54
8.1.00.0170.00337.54

preferences:
25.71 ms | 403 KiB | 5 Q