3v4l.org

run code in 500+ PHP versions simultaneously
<?php class X { function foo() { print __METHOD__.PHP_EOL; print __CLASS__.PHP_EOL; print __FUNCTION__.PHP_EOL; } } (new x)->foo(); function foo() { print __METHOD__.PHP_EOL; print __CLASS__.PHP_EOL; print __FUNCTION__.PHP_EOL; } foo();

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.0090.00716.47
8.5.50.0020.00516.74
8.5.30.0100.00719.73
8.5.20.0130.00420.17
8.5.10.0080.01116.52
8.5.00.0140.00719.97
8.4.210.0150.00721.36
8.4.180.0140.00919.40
8.4.170.0080.01322.17
8.4.160.0120.00922.10
8.4.150.0070.00516.85
8.4.140.0130.00817.34
8.4.130.0130.00717.51
8.4.120.0130.00720.63
8.4.110.0100.00418.82
8.4.100.0150.00617.76
8.4.90.0120.00817.70
8.4.80.0120.00717.51
8.4.70.0060.00217.68
8.4.60.0530.01217.43
8.4.50.0380.00417.70
8.4.40.0180.00617.45
8.4.30.0400.01117.47
8.4.20.0390.00717.03
8.4.10.0380.01017.61
8.3.300.0100.01020.80
8.3.290.0120.01122.60
8.3.280.0110.00918.39
8.3.270.0110.01116.34
8.3.260.0070.01216.41
8.3.250.0120.00618.80
8.3.240.0060.00316.56
8.3.230.0110.00918.06
8.3.220.0090.00916.73
8.3.210.0120.00716.60
8.3.200.0390.00516.22
8.3.190.0360.00816.30
8.3.180.0420.01016.20
8.3.170.0360.01016.48
8.3.160.0360.01216.33
8.3.150.0400.00816.43
8.3.140.0460.00816.75
8.3.130.0210.00516.63
8.3.120.0170.00816.20
8.3.110.0290.00916.40
8.3.100.0370.01116.59
8.3.90.0250.00716.36
8.3.80.0230.00116.20
8.3.70.0230.00216.20
8.3.60.0160.00516.56
8.3.50.0190.00116.71
8.3.40.0170.00217.02
8.3.30.0140.00317.30
8.3.20.0120.00617.09
8.3.10.0240.00117.03
8.3.00.0150.00817.07
8.2.300.0120.00920.04
8.2.290.0090.00920.22
8.2.280.0110.00516.69
8.2.270.0160.00216.66
8.2.260.0170.00516.28
8.2.250.0120.00516.51
8.2.240.0120.00516.28
8.2.230.0170.00116.29
8.2.220.0130.00416.20
8.2.210.0140.00316.20
8.2.200.0110.00516.32
8.2.190.0130.00516.60
8.2.180.0140.00516.32
8.2.170.0140.00317.10
8.2.160.0100.00517.44
8.2.150.0080.00817.03
8.2.140.0130.00416.77
8.2.130.0110.00617.22
8.2.120.0130.00417.04
8.2.110.0130.00617.43
8.2.100.0210.00417.22
8.2.90.0110.00517.07
8.2.80.0110.00417.36
8.2.70.0120.00617.40
8.2.60.0200.00717.36
8.2.50.0200.00417.16
8.2.40.0140.00917.48
8.2.30.0160.00717.31
8.2.20.0150.00717.32
8.2.10.0200.00517.32
8.2.00.0180.01117.00
8.1.340.0150.00620.15

preferences:
64.15 ms | 846 KiB | 5 Q