3v4l.org

run code in 300+ PHP versions simultaneously
<?php function pmGetTaxRate($date = false) { if(!$date){ $date = time(); } if(!is_numeric($date)){ $date = strtotime($date); } if($date >= strtotime('2020-07-01') && $date < strtotime('2021-01-01')){ return 16; } return 19; } echo (1 + pmGetTaxRate()/ 100);
based on UMTZ1

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.0.0alpha10.0130.00516.80
7.4.70.0140.00816.51
7.4.60.0140.01116.71
7.4.50.0040.01316.48
7.4.40.0070.01116.68
7.4.30.0130.00916.54
7.4.20.0070.01716.51
7.4.10.0120.00716.82
7.4.00.0030.01616.70
7.3.190.0150.00816.49
7.3.180.0080.01516.44
7.3.170.0090.01616.67
7.3.160.0140.01016.57
7.3.150.0090.00916.57
7.3.140.0150.00916.53
7.3.130.0140.00916.56
7.3.120.0130.00816.54
7.3.110.0120.00616.75
7.3.100.0160.00316.57
7.3.90.0070.01016.66
7.3.80.0090.00916.78
7.3.70.0090.00916.59
7.3.60.0110.00716.55
7.3.50.0150.00416.54
7.3.40.0030.01316.46
7.3.30.0100.01016.54
7.3.20.0120.00916.39
7.3.10.0130.00616.29
7.3.00.0870.00716.66
7.2.310.0100.01316.73
7.2.300.0110.00716.81
7.2.290.0090.00916.70
7.2.280.0140.01116.87
7.2.270.0130.00616.71
7.2.260.0140.00616.92
7.2.250.0100.01016.46
7.2.240.0140.00716.90
7.2.230.0180.00316.51
7.2.220.0120.00616.77
7.2.210.0060.01216.65
7.2.200.0070.01016.85
7.2.190.0170.00316.67
7.2.180.0100.00716.52
7.2.170.0120.00616.69
7.2.160.0110.00716.73
7.2.150.0170.00316.71
7.2.140.0090.00916.77
7.2.130.0150.00916.77
7.2.120.0030.01516.68
7.2.110.0070.01716.56
7.2.100.0160.00716.80
7.2.90.0310.00416.69
7.2.80.0070.01016.76
7.2.70.0200.00316.81
7.2.60.0060.01116.85
7.2.50.0030.01416.74
7.2.40.0030.01416.60
7.2.30.0080.01216.86
7.2.20.0130.00816.69
7.2.10.0100.01016.60
7.2.00.0140.00316.77