3v4l.org

run code in 300+ PHP versions simultaneously
<?php // appends the text to the end of the end of the file file_put_contents($file, $text, FILE_APPEND); // appends the text to the end of the end of the file $fp = fwrite($file, 'a'); fwrite($fp, $text);

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.120.0030.00620.30
8.4.110.0120.00722.27
8.4.100.0110.00517.96
8.4.90.0110.01017.83
8.4.80.0100.01219.55
8.4.70.0210.00619.81
8.4.60.0430.00718.04
8.4.50.0400.00717.87
8.4.40.0400.01217.98
8.4.30.0430.00917.59
8.4.20.0430.01117.46
8.4.10.0140.00717.86
8.3.250.0080.01118.98
8.3.240.0100.00616.66
8.3.230.0060.00316.53
8.3.220.0020.00716.97
8.3.210.0150.01016.97
8.3.200.0310.00416.97
8.3.190.0470.00916.97
8.3.180.0310.00316.97
8.3.170.0280.00516.97
8.3.160.0190.00416.97
8.3.150.0400.01016.97
8.3.140.0300.00616.97
8.3.130.0360.00816.97
8.3.120.0360.00916.97
8.3.110.0350.01116.97
8.3.100.0410.01016.97
8.3.90.0430.00816.97
8.3.80.0430.00716.97
8.3.70.0310.01116.97
8.3.60.0440.00616.97
8.3.50.0260.00716.97
8.3.40.0250.01017.31
8.3.30.0170.00317.39
8.3.20.0160.00517.45
8.3.10.0320.00717.38
8.3.00.0160.01117.30
8.2.290.0110.00720.47
8.2.280.0330.00616.97
8.2.270.0320.00716.97
8.2.260.0340.00916.97
8.2.250.0320.01116.97
8.2.240.0370.00616.97
8.2.230.0340.00816.97
8.2.220.0270.00116.97
8.2.210.0220.00416.97
8.2.200.0400.00816.97
8.2.190.0370.00816.97
8.2.180.0390.00816.97
8.2.170.0280.00517.75
8.2.160.0320.00917.43
8.2.150.0390.00617.44
8.2.140.0360.00717.32
8.2.130.0380.00817.32
8.2.120.0360.00717.69
8.2.110.0320.01117.61
8.2.100.0340.01017.45
8.2.90.0260.00617.61
8.2.80.0240.00517.51
8.2.70.0350.01017.45
8.2.60.0380.00517.45
8.2.50.0320.00817.36
8.2.40.0290.01017.48
8.2.30.0330.00717.63
8.2.20.0340.00817.54
8.2.10.0270.01317.48
8.2.00.0320.01117.57

preferences:
29.49 ms | 403 KiB | 5 Q