3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace Foo; //foreach ( array(1,2,3) as $i ) { echo strlen('hello'), ' '; shadow_strlen(); echo strlen('hello'), '; '; //} function shadow_strlen() { function strlen($s) { return 42; } }

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.30.0070.01019.45
8.5.20.0100.00720.14
8.5.10.0110.00816.59
8.5.00.0130.01021.68
8.4.180.0140.00721.91
8.4.170.0130.00820.47
8.4.160.0050.00422.27
8.4.150.0020.00014.05
8.4.140.0140.00717.25
8.4.130.0160.00517.72
8.4.120.0110.00824.05
8.4.110.0040.00322.42
8.4.100.0110.01017.65
8.4.90.0040.00718.81
8.4.80.0070.00417.46
8.4.70.0110.00818.01
8.4.60.0110.01018.43
8.4.50.0100.00817.48
8.4.40.0170.00317.63
8.4.30.0080.01120.66
8.4.20.0100.00019.35
8.4.10.0150.00419.34
8.3.300.0120.00820.75
8.3.290.0100.01020.85
8.3.280.0150.00518.27
8.3.270.0120.00816.49
8.3.260.0140.00516.70
8.3.250.0130.00619.05
8.3.240.0110.00817.06
8.3.230.0140.00616.57
8.3.220.0130.00617.36
8.3.210.0070.01118.56
8.3.200.0050.00316.39
8.3.190.0050.00319.21
8.3.180.0090.00616.60
8.3.170.0090.00916.97
8.3.160.0100.00716.59
8.3.150.0080.00016.82
8.3.140.0120.00619.13
8.3.130.0030.00616.73
8.3.120.0080.00820.62
8.3.110.0040.00420.94
8.3.100.0440.00337.54
8.3.90.0330.01537.54
8.3.80.0490.00337.54
8.3.70.0390.00437.54
8.3.60.0320.01137.54
8.3.50.0320.00937.54
8.3.40.0400.00337.54
8.3.30.0300.00637.54
8.3.20.0320.00637.54
8.3.10.0290.01037.54
8.3.00.0360.00437.54
8.2.300.0130.00822.29
8.2.290.0110.00820.36
8.2.280.0110.00918.10
8.2.270.0110.00716.68
8.2.260.0030.00518.15
8.2.250.0040.00418.33
8.2.240.0090.00016.84
8.2.230.0090.00022.58
8.2.220.0270.01537.54
8.2.210.0250.01737.54
8.2.200.0270.01037.54
8.2.190.0300.00337.54
8.2.180.0330.00337.54
8.2.170.0320.00337.54
8.2.160.0250.01437.54
8.2.150.0630.00437.54
8.2.140.0390.00937.54
8.2.130.0410.00437.54
8.2.120.0370.00837.54
8.2.110.0410.00437.54
8.2.100.0310.01137.54
8.2.90.0370.00637.54
8.2.80.0340.00937.54
8.2.70.0330.00937.54
8.2.60.0370.00637.54
8.2.50.0340.00937.54
8.2.40.0410.00337.54
8.2.30.0420.00437.54
8.2.20.0260.01337.54
8.2.10.0300.01337.54
8.2.00.0480.00037.54
8.1.340.0110.00821.58
8.1.330.0100.00921.84
8.1.320.0110.00716.06
8.1.310.0050.00317.84
8.1.300.0000.00916.63
8.1.290.0400.00037.54
8.1.280.0350.00637.54
8.1.270.0230.01537.54
8.1.260.0340.01037.54
8.1.250.0300.01337.54
8.1.240.0250.00637.54
8.1.230.0340.00437.54
8.1.220.0320.01037.54
8.1.210.0160.02037.54
8.1.200.0310.00837.54
8.1.190.0340.00837.54
8.1.180.0310.00937.54
8.1.170.0390.00637.54
8.1.160.0320.01137.54
8.1.150.0290.01437.54
8.1.140.0300.01337.54
8.1.130.0270.00437.54
8.1.120.0230.00937.54
8.1.110.0260.00937.54
8.1.100.0360.00937.54
8.1.90.0270.00737.54
8.1.80.0190.00537.54
8.1.70.0140.00537.54
8.1.60.0210.00037.54
8.1.50.0120.00837.54
8.1.40.0220.00837.54
8.1.30.0130.00737.54
8.1.20.0360.00637.54
8.1.10.0320.01337.54
8.1.00.0380.01037.54

preferences:
33.6 ms | 403 KiB | 5 Q