3v4l.org

run code in 300+ PHP versions simultaneously
<?php $filename = tempnam('/tmp', 'testing-'); file_put_contents($filename, "First\n\nSecond\n"); $lines = file($filename, FILE_SKIP_EMPTY_LINES); echo "Just FILE_SKIP_EMPTY_LINES:\n"; var_dump( ...$lines ); echo "Also FILE_IGNORE_NEW_LINES:\n"; $lines2 = file($filename, FILE_SKIP_EMPTY_LINES|FILE_IGNORE_NEW_LINES); var_dump( ...$lines2 ); unlink($filename);

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.4.140.0080.01317.56
8.4.130.0140.00717.80
8.4.120.0080.01322.46
8.4.110.0120.00919.03
8.4.100.0160.00517.69
8.4.90.0090.00617.83
8.4.80.0140.00419.70
8.4.70.0040.00517.82
8.4.60.0120.00918.64
8.4.50.0220.00918.38
8.4.40.0200.00517.35
8.4.30.0180.00517.69
8.4.20.0210.00217.54
8.4.10.0170.00617.36
8.3.270.0130.00816.58
8.3.260.0050.00316.56
8.3.250.0080.01118.96
8.3.240.0130.00816.52
8.3.230.0150.00516.65
8.3.220.0050.00317.41
8.3.210.0130.00616.59
8.3.200.0060.00316.61
8.3.190.0170.00316.77
8.3.180.0120.00518.87
8.3.170.0210.00616.09
8.3.160.0170.00416.43
8.3.150.0180.00416.78
8.3.140.0190.00216.46
8.3.130.0150.00516.37
8.3.120.0130.00616.33
8.3.110.0120.00616.28
8.3.100.0160.00816.45
8.3.90.0160.00416.36
8.3.80.0180.00416.62
8.3.70.0140.00616.48
8.3.60.0170.00416.41
8.3.50.0180.00316.64
8.3.40.0170.00317.41
8.3.30.0140.00417.35
8.3.20.0200.00817.18
8.3.10.0180.00617.37
8.3.00.0090.00617.34
8.2.290.0130.00818.77
8.2.280.0130.00418.12
8.2.270.0220.00816.46
8.2.260.0160.00615.99
8.2.250.0180.00016.55
8.2.240.0120.00616.37
8.2.230.0110.00616.26
8.2.220.0140.00416.68
8.2.210.0110.00616.48
8.2.200.0120.00616.49
8.2.190.0160.00116.34
8.2.180.0140.00416.30
8.2.170.0140.00417.37
8.2.160.0120.00617.61
8.2.150.0150.00417.23
8.2.140.0170.00617.29
8.2.130.0130.00517.32
8.2.120.0190.00817.52
8.2.110.0240.00617.57
8.2.100.0160.00617.54
8.2.90.0250.00917.54
8.2.80.0310.00817.14
8.2.70.0240.00317.57
8.2.60.0200.00917.18
8.2.50.0110.00617.55
8.2.40.0190.00617.38
8.2.30.0140.00317.00
8.2.20.0180.00317.53
8.2.10.0200.00417.36
8.2.00.0300.00217.17
8.1.320.0040.00416.13

preferences:
27.41 ms | 403 KiB | 5 Q