3v4l.org

run code in 500+ PHP versions simultaneously
<?php function &foo() { static $x = []; print_r($x); return $x; } $a = foo()[] = 3; var_dump($a); 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.70.0080.00818.43
8.5.60.0100.00716.91
8.5.50.0110.00616.59
8.5.30.0080.01019.64
8.5.20.0110.00920.26
8.5.10.0130.00516.67
8.5.00.0110.01021.61
8.4.220.0120.00719.40
8.4.210.0090.01121.53
8.4.180.0130.01119.67
8.4.170.0100.00922.17
8.4.160.0150.00623.73
8.4.150.0080.00516.86
8.4.140.0110.01117.55
8.4.130.0120.00717.79
8.4.120.0040.00520.61
8.4.110.0150.00518.70
8.4.100.0040.00517.87
8.4.90.0110.00917.96
8.4.80.0100.00719.70
8.4.70.0410.00818.14
8.4.60.0280.00418.14
8.4.50.0230.00918.14
8.4.40.0320.00718.14
8.4.30.0360.01118.14
8.4.20.0300.00918.14
8.4.10.0380.00818.14
8.3.310.0070.00218.48
8.3.300.0120.00920.67
8.3.290.0100.01120.86
8.3.280.0150.00718.25
8.3.270.0110.00816.38
8.3.260.0050.00316.57
8.3.250.0110.00918.76
8.3.240.0100.00916.60
8.3.230.0120.00616.47
8.3.220.0130.00516.76
8.3.210.0350.00918.14
8.3.200.0380.00518.14
8.3.190.0360.00818.14
8.3.180.0340.00618.14
8.3.170.0320.01118.14
8.3.160.0420.00918.14
8.3.150.0380.00818.14
8.3.140.0470.00818.14
8.3.130.0390.00818.14
8.3.120.0300.01118.14
8.3.110.0270.01218.14
8.3.100.0340.00918.14
8.3.90.0410.00818.14
8.3.80.0440.00618.14
8.3.70.0400.01118.14
8.3.60.0370.01018.14
8.3.50.0370.00618.14
8.3.40.0400.00618.14
8.3.30.0290.00918.14
8.3.20.0280.00518.14
8.3.10.0270.00718.14
8.3.00.0290.00818.14
8.2.310.0140.00518.14
8.2.300.0100.00920.36
8.2.290.0110.00820.45
8.2.280.0250.00618.14
8.2.270.0250.00618.14
8.2.260.0230.00818.14
8.2.250.0190.01018.14
8.2.240.0320.01218.14
8.2.230.0410.00518.14
8.2.220.0280.01018.14
8.2.210.0310.00618.14
8.2.200.0340.00818.14
8.2.190.0280.01118.14
8.2.180.0320.00718.14
8.2.170.0310.00818.14
8.2.160.0290.00918.14
8.2.150.0390.00718.14
8.2.140.0370.00918.14
8.2.130.0310.00618.14
8.2.120.0220.00618.14
8.2.110.0160.00218.14
8.2.100.0150.00218.14
8.2.90.0150.00318.14
8.2.80.0330.01018.14
8.2.70.0420.00618.14
8.2.60.0290.00718.14
8.2.50.0330.00818.14
8.2.40.0250.01118.14
8.2.30.0220.00518.14
8.2.20.0290.01218.14
8.2.10.0350.00918.14
8.2.00.0270.00518.14
8.1.340.0140.00820.39

preferences:
74.55 ms | 865 KiB | 5 Q