3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x = 10; class test { public static function sayHello() use ($x) { echo "Hello, $x"; } } test::sayHello();

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.210.0100.04112.39
5.4.200.0080.04912.39
5.4.190.0120.04612.39
5.4.180.0080.05012.39
5.4.170.0180.04012.40
5.4.160.0140.04312.39
5.4.150.0140.04312.39
5.4.140.0120.04612.08
5.4.130.0140.04512.06
5.4.120.0130.04712.03
5.4.110.0140.04412.03
5.4.100.0150.05012.03
5.4.90.0120.04212.02
5.4.80.0120.03912.02
5.4.70.0120.05312.02
5.4.60.0110.03912.02
5.4.50.0110.04112.02
5.4.40.0090.04312.01
5.4.30.0090.04312.00
5.4.20.0140.04412.00
5.4.10.0120.03812.01
5.4.00.0100.03911.50
5.3.270.0120.04112.72
5.3.260.0100.04712.72
5.3.250.0110.04012.72
5.3.240.0110.04212.72
5.3.230.0070.04512.71
5.3.220.0090.04212.68
5.3.210.0110.04412.68
5.3.200.0170.06512.68
5.3.190.0100.04312.68
5.3.180.0110.04112.68
5.3.170.0120.03912.67
5.3.160.0090.04112.67
5.3.150.0090.04312.67
5.3.140.0120.04012.66
5.3.130.0120.04212.66
5.3.120.0100.04412.66
5.3.110.0100.04312.66
5.3.100.0120.05412.12
5.3.90.0120.04012.09
5.3.80.0130.03912.08
5.3.70.0090.04512.08
5.3.60.0120.04512.07
5.3.50.0140.03812.02
5.3.40.0120.04112.01
5.3.30.0180.04911.98
5.3.20.0130.03611.76
5.3.10.0210.05811.72
5.3.00.0120.03911.71

preferences:
140.42 ms | 1394 KiB | 7 Q