3v4l.org

run code in 300+ PHP versions simultaneously
<?php function push_to_array( array &$array, string ...$items ): void { foreach ($items as $array[]); } $array = ['once', 'two', 'three']; push_to_array($array,); var_export($array);

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.30.0130.00919.55
8.5.20.0120.01219.36
8.5.10.0090.00816.64
8.5.00.0160.00620.03
8.4.180.0100.01119.50
8.4.170.0100.01022.32
8.4.160.0180.00323.87
8.4.150.0080.00416.83
8.4.140.0100.01117.66
8.4.130.0060.00317.93
8.4.120.0080.00320.66
8.4.110.0050.00420.38
8.4.100.0120.00917.57
8.4.90.0130.00717.64
8.4.80.0130.00717.77
8.4.70.0110.00617.54
8.4.60.0090.00617.50
8.4.50.0120.00917.69
8.4.40.0390.01017.39
8.4.30.0410.00717.17
8.4.20.0390.01017.40
8.4.10.0430.00317.48
8.3.300.0080.01320.75
8.3.290.0120.00918.40
8.3.280.0080.01020.55
8.3.270.0150.00516.77
8.3.260.0080.01116.21
8.3.250.0040.00418.75
8.3.240.0120.00716.64
8.3.230.0120.00716.54
8.3.220.0050.00516.98
8.3.210.0050.00316.61
8.3.200.0100.01016.23
8.3.190.0050.00516.50
8.3.180.0110.00816.58
8.3.170.0160.01216.54
8.3.160.0350.01016.64
8.3.150.0390.00716.29
8.3.140.0450.01116.67
8.3.130.0410.00616.46
8.3.120.0370.00416.43
8.3.110.0350.00616.71
8.3.100.0350.00916.48
8.3.90.0390.00916.58
8.3.80.0340.01016.14
8.3.70.0300.01716.28
8.3.60.0320.00316.55
8.3.50.0120.00816.56
8.3.40.0120.00817.25
8.3.30.0170.00017.16
8.3.20.0220.01317.21
8.3.10.0290.00717.53
8.3.00.0040.01717.29
8.2.300.0120.01118.22
8.2.290.0110.00820.36
8.2.280.0170.00716.46
8.2.270.0260.01316.41
8.2.260.0280.01016.44
8.2.250.0290.00816.66
8.2.240.0260.01516.31
8.2.230.0360.00816.54
8.2.220.0340.00316.49
8.2.210.0290.00616.45
8.2.200.0270.01216.18
8.2.190.0380.00016.46
8.2.180.0300.00916.46
8.2.170.0350.01217.26
8.2.160.0370.00417.72
8.2.150.0340.00717.67
8.2.140.0320.00917.49
8.2.130.0280.01317.30
8.2.120.0320.01217.32
8.2.110.0370.00617.26
8.2.100.0360.00617.33
8.2.90.0290.01017.41
8.2.80.0230.01217.35
8.2.70.0300.00617.27
8.2.60.0190.01217.45
8.2.50.0300.00717.32
8.2.40.0330.00317.69
8.2.30.0320.00417.34
8.2.20.0250.01217.19
8.2.10.0300.01017.17
8.2.00.0350.00017.41
8.1.340.0100.01117.75
8.1.320.0060.00916.11

preferences:
60.42 ms | 841 KiB | 5 Q