3v4l.org

run code in 300+ PHP versions simultaneously
<?php $employee_salary = 45000.00; $days = 29; $totaldays = 20; $deduction = 10000.00; $emp_salary= $totaldays*(round($employee_salary/$days)); echo $emppp= number_format($emp_salary-$deduction ,2);

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.3.60.0150.00618.43
8.3.50.0130.00316.59
8.3.40.0060.00918.84
8.3.30.0110.00418.83
8.3.20.0000.00820.54
8.3.10.0070.00020.35
8.3.00.0050.00218.72
8.2.180.0130.00318.05
8.2.170.0140.00722.96
8.2.160.0170.00320.35
8.2.150.0030.00724.18
8.2.140.0030.00524.66
8.2.130.0000.00826.16
8.2.120.0030.00521.13
8.2.110.0030.00722.38
8.2.100.0030.00919.76
8.2.90.0080.00018.34
8.2.80.0000.00817.97
8.2.70.0040.00417.63
8.2.60.0000.00817.50
8.2.50.0000.00818.05
8.2.40.0040.00418.22
8.2.30.0070.00019.45
8.2.20.0000.00718.13
8.2.10.0040.00419.32
8.2.00.0070.00019.37
8.1.280.0070.00725.92
8.1.270.0040.00420.68
8.1.260.0040.00726.35
8.1.250.0040.00428.09
8.1.240.0060.00323.92
8.1.230.0070.00422.69
8.1.220.0030.00617.74
8.1.210.0080.00018.77
8.1.200.0000.00917.36
8.1.190.0040.00417.48
8.1.180.0060.00318.10
8.1.170.0040.00417.62
8.1.160.0000.00719.01
8.1.150.0040.00418.92
8.1.140.0000.00718.87
8.1.130.0000.00719.19
8.1.120.0000.00717.45
8.1.110.0000.00817.33
8.1.100.0000.00817.45
8.1.90.0000.00717.37
8.1.80.0080.00017.52
8.1.70.0000.00717.49
8.1.60.0000.00917.50
8.1.50.0000.00817.53
8.1.40.0030.00517.47
8.1.30.0000.00917.66
8.1.20.0000.00817.67
8.1.10.0000.00717.44
8.1.00.0040.00417.43
8.0.300.0000.00721.85
8.0.290.0080.00016.75
8.0.280.0000.00718.43
8.0.270.0030.00318.02
8.0.260.0040.00416.86
8.0.250.0070.00016.89
8.0.240.0050.00217.00
8.0.230.0080.00017.07
8.0.220.0030.00317.00
8.0.210.0030.00316.96
8.0.200.0040.00416.91
8.0.190.0000.00817.00
8.0.180.0080.00016.96
8.0.170.0060.00316.89
8.0.160.0030.00416.85
8.0.150.0040.00416.84
8.0.140.0070.00016.82
8.0.130.0030.00313.27
8.0.120.0070.00016.84
8.0.110.0000.00716.86
8.0.100.0000.00716.75
8.0.90.0000.00816.83
8.0.80.0060.00816.86
8.0.70.0040.00416.86
8.0.60.0080.00016.95
8.0.50.0080.00016.91
8.0.30.0130.00316.75
8.0.20.0130.00616.95
8.0.10.0030.00316.88
8.0.00.0120.00616.80
7.4.330.0030.00315.55
7.4.320.0060.00016.42
7.4.300.0030.00316.51
7.4.290.0000.00716.40
7.4.280.0050.00316.52
7.4.270.0030.00316.52
7.4.260.0030.00313.21
7.4.250.0040.00416.54
7.4.240.0030.00516.49
7.4.230.0000.00716.38
7.4.220.0040.00416.55
7.4.210.0080.01216.49
7.4.200.0030.00316.55
7.4.130.0110.01016.38
7.4.120.0160.00016.44
7.4.110.0140.00316.61
7.4.100.0140.00616.55
7.4.90.0180.00016.51
7.4.80.0080.00819.39
7.4.70.0090.01216.52
7.4.60.0040.01216.57
7.4.50.0060.00916.56
7.4.40.0100.00716.36
7.4.20.0100.01316.35
7.4.10.0070.01016.46
7.4.00.0130.00316.50
7.3.330.0030.00316.19
7.3.320.0000.00513.30
7.3.310.0040.00416.26
7.3.300.0030.00316.31
7.3.290.0070.00916.39
7.3.260.0100.00716.51
7.3.240.0110.00716.57
7.3.230.0090.00616.25
7.3.210.0130.00416.39
7.3.200.0040.01316.27
7.3.190.0060.01216.50
7.3.180.0000.02116.35
7.3.170.0030.01916.45
7.3.160.0060.00916.32
7.3.140.0150.00616.42
7.3.130.0040.01216.37
7.3.120.0070.01016.44
7.3.110.0130.00316.29
7.3.100.0130.00316.41
7.3.90.0030.02016.45
7.3.80.0120.00916.19
7.3.70.0110.01116.42
7.3.60.0080.01616.41
7.3.50.0030.01416.43
7.3.40.0170.00016.37
7.3.30.0030.01316.37
7.3.20.0130.00416.53
7.3.10.0090.00916.45
7.3.00.0090.00916.41
7.2.330.0060.01616.50
7.2.320.0070.01016.74
7.2.310.0100.00616.42
7.2.300.0100.01416.65
7.2.290.0030.01316.71
7.2.270.0070.01016.53
7.2.260.0100.00716.81
7.2.250.0060.00916.34
7.2.240.0070.01416.39
7.2.230.0100.00716.63
7.2.220.0070.01616.57
7.2.210.0060.01216.61
7.2.200.0150.00916.59
7.2.190.0140.01116.55
7.2.180.0140.00816.46
7.2.170.0130.00516.42
7.2.160.0100.00716.27
7.2.150.0100.00716.65
7.2.140.0090.00916.50
7.2.130.0070.01016.61
7.2.120.0190.01016.71
7.2.110.0180.00616.46
7.2.100.0120.00616.63
7.2.90.0150.00616.59
7.2.80.0130.00616.71
7.2.70.0130.00616.55
7.2.60.0060.01616.45
7.2.50.0100.01316.59
7.2.40.0060.01216.61
7.2.30.0110.01216.47
7.2.20.0120.00916.48
7.2.10.0070.01616.63
7.2.00.0040.01416.53

preferences:
59.01 ms | 400 KiB | 5 Q