3v4l.org

run code in 300+ PHP versions simultaneously
<?php try { sprintf("%s"); } catch (Throwable $e) { var_dump($e->getMessage()); } try { vsprintf("%s", []); } catch (Throwable $e) { var_dump($e->getMessage()); }

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.10.0000.00816.72
8.5.00.0120.00919.79
8.4.150.0020.00114.05
8.4.140.0120.01017.59
8.4.130.0020.00618.80
8.4.120.0090.01023.93
8.4.110.0130.00720.64
8.4.100.0120.00819.00
8.4.90.0100.00920.64
8.4.80.0120.00918.73
8.4.70.0070.00818.73
8.4.60.0140.00618.70
8.4.50.0080.00718.52
8.4.40.0160.00317.52
8.4.30.0130.00618.91
8.4.20.0040.01621.55
8.4.10.0000.00819.31
8.3.280.0130.01118.27
8.3.270.0100.00916.80
8.3.260.0120.00716.70
8.3.250.0120.00718.87
8.3.240.0060.00217.30
8.3.230.0120.00716.48
8.3.220.0070.01318.94
8.3.210.0100.00816.54
8.3.200.0100.00816.52
8.3.190.0060.00417.25
8.3.180.0090.01018.94
8.3.170.0160.00318.57
8.3.160.0070.01116.55
8.3.150.0130.00617.02
8.3.140.0040.01117.04
8.3.130.0090.00018.42
8.3.120.0060.01318.51
8.3.110.0070.00316.63
8.3.100.0150.00416.62
8.3.90.0030.00726.77
8.3.80.0300.01030.84
8.3.70.0310.00430.84
8.3.60.0280.00330.84
8.3.50.0030.01030.84
8.3.40.0150.00330.84
8.3.30.0170.00630.84
8.3.20.0200.00030.84
8.3.10.0150.00330.84
8.3.00.0160.00330.84
8.2.290.0140.00620.48
8.2.280.0070.01118.40
8.2.270.0040.01417.08
8.2.260.0040.00418.32
8.2.250.0040.00418.76
8.2.240.0030.00620.52
8.2.230.0120.00320.94
8.2.220.0000.00924.06
8.2.210.0120.00626.77
8.2.200.0230.00930.84
8.2.190.0290.01130.84
8.2.180.0310.00030.84
8.2.170.0270.01230.84
8.2.160.0310.01230.84
8.2.150.0410.00330.84
8.2.140.0280.01830.84
8.2.130.0340.01030.84
8.2.120.0360.00730.84
8.2.110.0390.00730.84
8.2.100.0410.00330.84
8.2.90.0330.00330.84
8.2.80.0290.01130.84
8.2.70.0250.00330.84
8.2.60.0130.00630.84
8.2.50.0150.00430.84
8.2.40.0300.01030.84
8.2.30.0330.00630.84
8.2.20.0230.01630.84
8.2.10.0270.01230.84
8.2.00.0330.00630.84
8.1.330.0100.01022.05
8.1.320.0120.00716.23
8.1.310.0060.00316.80
8.1.300.0120.00419.49
8.1.290.0250.01730.84
8.1.280.0360.00730.84
8.1.270.0360.01130.84
8.1.260.0340.00930.84
8.1.250.0330.00430.84
8.1.240.0370.00030.84
8.1.230.0340.00430.84
8.1.220.0310.00630.84
8.1.210.0290.00930.84
8.1.200.0340.00430.84
8.1.190.0230.01430.84
8.1.180.0340.00330.84
8.1.170.0290.00830.84
8.1.160.0260.01330.84
8.1.150.0260.01130.84
8.1.140.0340.00430.84
8.1.130.0110.01130.84
8.1.120.0290.01030.84
8.1.110.0270.01030.84
8.1.100.0280.01030.84
8.1.90.0340.00330.84
8.1.80.0310.00730.84
8.1.70.0280.00830.84
8.1.60.0360.00730.84
8.1.50.0350.00730.84
8.1.40.0410.00030.84
8.1.30.0200.02030.84
8.1.20.0310.01030.84
8.1.10.0330.00730.84
8.1.00.0260.00730.84

preferences:
35.85 ms | 403 KiB | 5 Q