3v4l.org

run code in 500+ PHP versions simultaneously
<?php file_put_contents('/path/to/file.txt', [1,2,3]); print file_get_contents('/path/to/file.txt'); // print 123

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.0100.00818.55
8.5.60.0080.00916.82
8.5.50.0160.00116.62
8.5.30.0120.01118.02
8.5.20.0080.01020.24
8.5.10.0080.01216.68
8.5.00.0080.01419.62
8.4.220.0130.00819.61
8.4.210.0110.00921.54
8.4.180.0110.00921.90
8.4.170.0110.01121.91
8.4.160.0150.00823.70
8.4.150.0090.00316.86
8.4.140.0170.00517.52
8.4.130.0110.00917.79
8.4.120.0110.00922.18
8.4.110.0070.00922.13
8.4.100.0150.00517.66
8.4.90.0090.01117.85
8.4.80.0080.01218.00
8.4.70.0150.00817.90
8.4.60.0390.01017.59
8.4.50.0390.00917.76
8.4.40.0400.00717.29
8.4.30.0440.01017.20
8.4.20.0500.00617.68
8.4.10.0460.00817.63
8.3.310.0110.00918.41
8.3.300.0130.00718.30
8.3.290.0120.00820.59
8.3.280.0120.00918.31
8.3.270.0140.00516.77
8.3.260.0110.00916.34
8.3.250.0100.00918.67
8.3.240.0060.01316.80
8.3.230.0110.00916.31
8.3.220.0220.00316.97
8.3.210.0100.00116.97
8.3.200.0260.00416.97
8.3.190.0180.00516.97
8.3.180.0210.00416.97
8.3.170.0200.00316.97
8.3.160.0290.00516.97
8.3.150.0180.00516.97
8.3.140.0340.00316.97
8.3.130.0160.00416.97
8.3.120.0330.00816.97
8.3.110.0330.00916.97
8.3.100.0350.01416.97
8.3.90.0390.00916.97
8.3.80.0430.00916.97
8.3.70.0310.00316.97
8.3.60.0200.00416.97
8.3.50.0350.00616.97
8.3.40.0380.00717.39
8.3.30.0340.00517.45
8.3.20.0280.00817.63
8.3.10.0340.00517.45
8.3.00.0190.00717.64
8.2.310.0060.00418.13
8.2.300.0100.01118.82
8.2.290.0110.00620.38
8.2.280.0140.00516.97
8.2.270.0260.00816.97
8.2.260.0340.00816.97
8.2.250.0390.00816.97
8.2.240.0410.01116.97
8.2.230.0300.00816.97
8.2.220.0230.00416.97
8.2.210.0180.00316.97
8.2.200.0200.00416.97
8.2.190.0340.00616.97
8.2.180.0280.00916.97
8.2.170.0380.00717.55
8.2.160.0380.00817.45
8.2.150.0210.00617.69
8.2.140.0170.00317.46
8.2.130.0340.01117.53
8.2.120.0400.00517.66
8.2.110.0400.00417.48
8.2.100.0350.00817.61
8.2.90.0340.00917.52
8.2.80.0360.00817.26
8.2.70.0330.00817.47
8.2.60.0350.00917.29
8.2.50.0380.00617.35
8.2.40.0320.00817.46
8.2.30.0410.00817.44
8.2.20.0350.00517.49
8.2.10.0330.00717.25
8.2.00.0320.00917.32
8.1.340.0140.00521.57
5.4.00.0190.00315.92

preferences:
44.06 ms | 919 KiB | 5 Q