3v4l.org

run code in 500+ PHP versions simultaneously
<?php namespace Some\Long\Component\Name; echo strlen('hello'); # checks both namespaces echo \strlen('hello'); # global namespace only echo namespace\strlen('hello'); # current namespace only

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.5.80.0090.00817.10
8.5.70.0040.00417.09
8.5.60.0080.00818.79
8.5.50.0030.00416.92
8.5.30.0140.00319.54
8.5.20.0090.00920.26
8.5.10.0140.00416.86
8.5.00.0120.01121.97
8.4.230.0060.00419.59
8.4.220.0150.00619.89
8.4.210.0100.00921.47
8.4.180.0110.01222.14
8.4.170.0110.01121.93
8.4.160.0120.01022.02
8.4.150.0070.00616.95
8.4.140.0130.00917.76
8.4.130.0140.00618.50
8.4.120.0100.01020.50
8.4.110.0120.00818.16
8.4.100.0110.01017.86
8.4.90.0090.01120.72
8.4.80.0100.00918.86
8.4.70.0090.01220.48
8.4.60.0090.00320.32
8.4.50.0140.00718.56
8.4.40.0100.00617.84
8.4.30.0120.00620.53
8.4.20.0210.00021.47
8.4.10.0160.00319.48
8.3.320.0110.00718.42
8.3.310.0140.00718.42
8.3.300.0130.00718.31
8.3.290.0120.00920.80
8.3.280.0140.00618.31
8.3.270.0140.00516.37
8.3.260.0050.00416.75
8.3.250.0100.00916.75
8.3.240.0120.00618.69
8.3.230.0050.00418.36
8.3.220.0120.00618.72
8.3.210.0100.00616.67
8.3.200.0040.00516.80
8.3.190.0030.00516.95
8.3.180.0090.01018.70
8.3.170.0090.00916.77
8.3.160.0120.00618.35
8.3.150.0100.00016.81
8.3.140.0080.00016.41
8.3.130.0050.00318.58
8.3.120.0030.00620.47
8.3.110.0000.00918.25
8.3.100.0170.00737.54
8.3.90.0200.00037.54
8.3.80.0100.00037.54
8.3.70.0030.00737.54
8.3.60.0030.00637.54
8.3.50.0060.00937.54
8.3.40.0120.00037.54
8.3.30.0040.00837.54
8.3.20.0140.00537.54
8.3.10.0040.01237.54
8.3.00.0180.00037.54
8.2.320.0140.00618.08
8.2.310.0090.00818.21
8.2.300.0110.01022.14
8.2.290.0040.00616.66
8.2.280.0110.00820.55
8.2.270.0100.01018.63
8.2.260.0090.00916.80
8.2.250.0030.00518.97
8.2.240.0030.00619.05
8.2.230.0060.00320.94
8.2.220.0120.00337.54
8.2.210.0140.00337.54
8.2.200.0140.00337.54
8.2.190.0120.00337.54
8.2.180.0150.00037.54
8.2.170.0150.00337.54
8.2.160.0120.00437.54
8.2.150.0130.00437.54
8.2.140.0120.00837.54
8.2.130.0090.00437.54
8.2.120.0140.00637.54
8.2.110.0140.00437.54
8.2.100.0150.00437.54
8.2.90.0160.00037.54
8.2.80.0120.00837.54
8.2.70.0150.00337.54
8.2.60.0170.00037.54
8.2.50.0140.00437.54
8.2.40.0110.00837.54
8.2.30.0130.00337.54
8.2.20.0160.00337.54
8.2.10.0170.00037.54
8.2.00.0110.00537.54
8.1.340.0120.00819.79
8.1.330.0130.00615.86
8.1.320.0110.00717.94
8.1.310.0120.00319.96
8.1.300.0030.00617.95
8.1.290.0130.00537.54
8.1.280.0130.00237.54
8.1.270.0140.00737.54
8.1.260.0170.00337.54
8.1.250.0150.00337.54
8.1.240.0130.00537.54
8.1.230.0130.00337.54
8.1.220.0150.00337.54
8.1.210.0100.00737.54
8.1.200.0090.00937.54
8.1.190.0110.00537.54
8.1.180.0090.00937.54
8.1.170.0150.00437.54
8.1.160.0100.00637.54
8.1.150.0000.01637.54
8.1.140.0050.01137.54
8.1.130.0080.00837.54
8.1.120.0160.00337.54
8.1.110.0130.00437.54
8.1.100.0140.00437.54
8.1.90.0000.01737.54
8.1.80.0180.00037.54
8.1.70.0110.00737.54
8.1.60.0130.00537.54
8.1.50.0160.00337.54
8.1.40.0130.00437.54
8.1.30.0180.00037.54
8.1.20.0110.00537.54
8.1.10.0190.00037.54
8.1.00.0130.00537.54

preferences:
55.64 ms | 1050 KiB | 5 Q