3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo "Example difference between PHP version compared to 8.4's new technique".PHP_EOL; echo "===================".PHP_EOL; echo round(33.324999999999996,2) . PHP_EOL; echo round(33.334999999999996,2) . PHP_EOL; echo round(33.344999999999996,2) . PHP_EOL; echo round(33.354999999999996,2) . PHP_EOL; echo round(33.364999999999996,2) . PHP_EOL; echo round(33.374999999999996,2) . PHP_EOL; echo round(33.384999999999996,2) . PHP_EOL; echo round(33.394999999999996,2) . PHP_EOL; echo PHP_EOL; echo " simple multiplication " . 25*1.333 .PHP_EOL; echo " rounding that same sum " . round((25*1.333),2) . PHP_EOL; echo " but wait, lets just round 33.325 => " . round(33.325,2) . PHP_EOL;

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.130.0120.00818.93
8.4.120.0110.01018.70
8.4.110.0130.00819.00
8.4.100.0100.01017.72
8.4.90.0130.00720.69
8.4.80.0120.00819.07
8.4.70.0100.00920.76
8.4.60.0130.00720.52
8.4.50.0070.00920.27
8.4.40.0130.00719.32
8.4.30.0040.01520.51
8.4.20.0080.00419.26
8.4.10.0380.01217.44
8.3.260.0110.00816.76
8.3.250.0120.00716.71
8.3.240.0060.00316.74
8.3.230.0130.00616.54
8.3.220.0140.00420.83
8.3.210.0080.01216.42
8.3.200.0140.00516.41
8.3.190.0050.00317.08
8.3.180.0080.00719.05
8.3.170.0110.00716.78
8.3.160.0070.01120.34
8.3.150.0110.00716.86
8.3.140.0320.01616.17
8.3.130.0370.00616.61
8.3.120.0270.01216.25
8.3.110.0330.01016.39
8.3.100.0360.01216.42
8.3.90.0370.01116.71
8.3.80.0420.00416.47
8.3.70.0360.01116.42
8.3.60.0400.00616.38
8.3.50.0440.00316.43
8.3.40.0500.00017.48
8.3.30.0380.00017.28
8.3.20.0220.01417.34
8.3.10.0240.00817.59
8.3.00.0180.00317.32
8.2.290.0140.00617.00
8.2.280.0140.00518.31
8.2.270.0040.01416.94
8.2.260.0270.00716.15
8.2.250.0270.01216.36
8.2.240.0360.00616.43
8.2.230.0280.01416.45
8.2.220.0330.00616.34
8.2.210.0320.00616.50
8.2.200.0310.00816.52
8.2.190.0300.01016.32
8.2.180.0370.00416.14
8.2.170.0310.01017.50
8.2.160.0300.01117.73
8.2.150.0360.00617.33
8.2.140.0330.01217.30
8.2.130.0430.00417.39
8.2.120.0300.01017.65
8.2.110.0260.01617.50
8.2.100.0330.00717.42
8.2.90.0180.02217.41
8.2.80.0350.00017.40
8.2.70.0370.00417.49
8.2.60.0290.01017.46
8.2.50.0300.00317.40
8.2.40.0320.00617.34
8.2.30.0320.00817.16
8.2.20.0340.00817.07
8.2.10.0340.00317.41
8.2.00.0350.00616.95
8.1.320.0080.01223.42

preferences:
29.17 ms | 403 KiB | 5 Q