3v4l.org

run code in 500+ PHP versions simultaneously
<?php const A = 1; function &foo(&$a) { return []; } $a = 1; $a = foo($a); // Notice: Only variable references should be returned by reference foo(1); // Fatal error: Uncaught Error: foo(): Argument #1 ($a) cannot be passed by reference ?>

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.0070.01117.08
8.5.50.0060.00116.88
8.5.30.0110.00717.94
8.5.20.0080.01020.23
8.5.10.0120.00716.59
8.5.00.0150.00920.02
8.4.210.0120.00921.53
8.4.180.0130.00921.70
8.4.170.0110.01021.88
8.4.160.0070.00522.12
8.4.150.0080.00416.87
8.4.140.0130.00818.01
8.4.130.0050.00317.82
8.4.120.0100.00720.47
8.4.110.0130.00622.27
8.4.100.0140.00818.10
8.4.90.0150.00617.87
8.4.80.0330.00818.50
8.4.70.0400.00618.07
8.4.60.0450.00717.81
8.4.50.0370.00717.75
8.4.40.0440.00817.97
8.4.30.0330.00517.49
8.4.20.0420.01117.54
8.4.10.0410.01217.77
8.3.300.0160.00520.63
8.3.290.0100.01120.69
8.3.280.0130.00818.50
8.3.270.0100.01016.75
8.3.260.0080.00116.84
8.3.250.0100.00618.70
8.3.240.0080.01116.91
8.3.230.0090.01016.74
8.3.220.0280.01119.20
8.3.210.0240.00916.89
8.3.200.0160.00516.91
8.3.190.0200.00116.89
8.3.180.0370.00816.89
8.3.170.0390.01216.89
8.3.160.0490.00316.89
8.3.150.0390.01016.89
8.3.140.0430.00816.89
8.3.130.0290.00716.89
8.3.120.0230.00716.89
8.3.110.0230.00216.89
8.3.100.0220.00316.89
8.3.90.0220.00316.91
8.3.80.0190.00516.89
8.3.70.0160.00616.89
8.3.60.0200.00316.89
8.3.50.0250.00616.89
8.3.40.0200.00217.59
8.3.30.0280.00517.57
8.3.20.0390.00517.24
8.3.10.0320.00817.50
8.3.00.0190.00519.41
8.2.300.0030.00620.53
8.2.290.0120.00720.45
8.2.280.0340.00516.89
8.2.270.0290.01016.89
8.2.260.0240.00616.89
8.2.250.0350.00816.89
8.2.240.0360.00616.89
8.2.230.0350.00816.89
8.2.220.0320.00816.89
8.2.210.0350.00816.89
8.2.200.0340.00716.89
8.2.190.0310.00816.89
8.2.180.0240.00816.89
8.2.170.0180.00417.77
8.2.160.0340.00817.72
8.2.150.0380.00717.70
8.2.140.0300.00517.45
8.2.130.0310.01017.53
8.2.120.0340.01217.63
8.2.110.0210.00517.58
8.2.100.0350.01017.55
8.2.90.0300.00917.63
8.2.80.0410.01017.43
8.2.70.0380.01017.50
8.2.60.0350.01017.55
8.2.50.0370.00717.39
8.2.40.0360.00617.57
8.2.30.0320.01117.60
8.2.20.0430.00617.38
8.2.10.0320.00917.60
8.2.00.0330.00817.42
8.1.340.0120.01020.31

preferences:
40.97 ms | 873 KiB | 5 Q