3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace Foo { use function strlen; $string = str_repeat("a", rand(10, 20)); echo "hmm"; echo "strlen is " . strlen($string); echo "strpos is " . \strpos($string, "a"); }

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.2.00.0120.00518.74
8.1.130.0110.00618.52
8.1.120.0090.00718.53
8.1.110.0110.00718.65
8.1.100.0120.00518.59
8.1.90.0110.00518.65
8.1.80.0130.00418.59
8.1.70.0150.00118.66
8.1.60.0160.00318.69
8.1.50.0150.00418.70
8.1.40.0170.00118.72
8.1.30.0140.00418.75
8.1.20.0150.00618.78
8.1.10.0170.00318.69
8.1.00.0140.00318.62
8.0.260.0100.00317.96
8.0.250.0120.00218.03
8.0.240.0110.00418.01
8.0.230.0120.00418.02
8.0.220.0150.00317.94
8.0.210.0140.00317.96
8.0.200.0120.00618.04
8.0.190.0100.00718.04
8.0.180.0120.00418.01
8.0.170.0130.00518.01
8.0.160.0150.00317.97
8.0.150.0110.00617.95
8.0.140.0100.00618.01
8.0.130.0120.00417.95
8.0.120.0090.00817.95
8.0.110.0100.00517.93
8.0.100.0120.00417.93
8.0.90.0120.00617.85
8.0.80.0130.00317.89
8.0.70.0130.00317.87
8.0.60.0140.00117.91
8.0.50.0110.00417.82
8.0.30.0090.00517.89
8.0.20.0090.00517.91
8.0.10.0090.00518.03

preferences:
41.99 ms | 654 KiB | 5 Q