3v4l.org

run code in 500+ PHP versions simultaneously
<?php function foo(int &$x) { $x = "foo!"; } $x = 1; foo($x); var_dump($x);

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.60.0110.00616.71
8.5.50.0120.00516.61
8.5.30.0090.00919.80
8.5.20.0120.00620.14
8.5.10.0130.00716.57
8.5.00.0090.01121.77
8.4.210.0110.00521.11
8.4.180.0160.00519.66
8.4.170.0120.00921.95
8.4.160.0100.01023.90
8.4.150.0070.00616.88
8.4.140.0140.00817.32
8.4.130.0110.00918.51
8.4.120.0070.00524.26
8.4.110.0110.00922.12
8.4.100.0120.00817.73
8.4.90.0110.00917.63
8.4.80.0110.00919.54
8.4.70.0070.01418.14
8.4.60.0390.01118.14
8.4.50.0460.00818.14
8.4.40.0320.01018.14
8.4.30.0420.00618.14
8.4.20.0420.00818.14
8.4.10.0420.00918.14
8.3.300.0100.01020.80
8.3.290.0100.01120.85
8.3.280.0120.00718.22
8.3.270.0140.00616.28
8.3.260.0130.00716.56
8.3.250.0090.01018.98
8.3.240.0110.00817.06
8.3.230.0110.00816.24
8.3.220.0110.00816.44
8.3.210.0390.00618.14
8.3.200.0350.00618.14
8.3.190.0330.01218.14
8.3.180.0350.00818.14
8.3.170.0370.01018.14
8.3.160.0380.01018.14
8.3.150.0300.01718.14
8.3.140.0410.00718.14
8.3.130.0290.00818.14
8.3.120.0270.01018.14
8.3.110.0330.01018.14
8.3.100.0380.00918.14
8.3.90.0340.00818.14
8.3.80.0380.00918.14
8.3.70.0380.01018.14
8.3.60.0380.00818.14
8.3.50.0370.00918.14
8.3.40.0390.01218.14
8.3.30.0320.00618.14
8.3.20.0300.01318.14
8.3.10.0290.00818.14
8.3.00.0380.00718.14
8.2.300.0140.00720.33
8.2.290.0120.00820.39
8.2.280.0250.00918.14
8.2.270.0320.00918.14
8.2.260.0300.00918.14
8.2.250.0290.01018.14
8.2.240.0320.01018.14
8.2.230.0290.00918.14
8.2.220.0340.00818.14
8.2.210.0270.01418.14
8.2.200.0350.00418.14
8.2.190.0320.00518.14
8.2.180.0330.00518.14
8.2.170.0290.00518.14
8.2.160.0300.01018.14
8.2.150.0330.00818.14
8.2.140.0320.00918.14
8.2.130.0340.00818.14
8.2.120.0350.00518.14
8.2.110.0310.00618.14
8.2.100.0240.01118.14
8.2.90.0290.01418.14
8.2.80.0340.01018.14
8.2.70.0320.00918.14
8.2.60.0340.00618.14
8.2.50.0360.00818.14
8.2.40.0480.00718.14
8.2.30.0290.01018.14
8.2.20.0300.00918.14
8.2.10.0330.01218.14
8.2.00.0350.00618.14
8.1.340.0080.01320.29

preferences:
51.1 ms | 844 KiB | 5 Q