3v4l.org

run code in 300+ PHP versions simultaneously
<?php $price = 1079; $taxrate = 1.08; $rewrite = $price / $taxrate; $floatflag = ($price * 100) % ($taxrate * 100); print_r ($floatflag . "\n"); print_r ($rewrite . "\n"); if($floatflag != 0){ $rewrite = floor($rewrite); print_r ("is float \n"); } else{ print_r ("is not float \n"); } print_r ($rewrite);

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.0140.00716.48
8.3.50.0070.01417.92
8.3.40.0090.00618.55
8.3.30.0060.00918.84
8.3.20.0040.00419.16
8.3.10.0040.00422.02
8.3.00.0100.00619.69
8.2.180.0140.00716.38
8.2.170.0110.00422.96
8.2.160.0140.00019.16
8.2.150.0070.00024.18
8.2.140.0050.00324.66
8.2.130.0000.00719.24
8.2.120.0050.00226.35
8.2.110.0000.01019.29
8.2.100.0080.00417.91
8.2.90.0000.00818.22
8.2.80.0030.00617.97
8.2.70.0000.00818.03
8.2.60.0060.00318.05
8.2.50.0080.00018.10
8.2.40.0030.00520.55
8.2.30.0040.00419.36
8.2.20.0050.00218.12
8.2.10.0040.00418.07
8.2.00.0070.00317.91
8.1.280.0030.01325.92
8.1.270.0080.00022.19
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0050.00522.59
8.1.230.0070.00421.02
8.1.220.0000.00817.91
8.1.210.0000.00819.04
8.1.200.0000.00817.23
8.1.190.0060.00317.23
8.1.180.0040.00420.26
8.1.170.0000.00818.63
8.1.160.0070.00023.94
8.1.150.0030.00518.95
8.1.140.0000.00719.68
8.1.130.0070.00018.99
8.1.120.0040.00417.61
8.1.110.0040.00417.52
8.1.100.0000.00817.56
8.1.90.0070.00017.57
8.1.80.0020.00517.57
8.1.70.0030.00317.41
8.1.60.0070.00317.52
8.1.50.0000.00717.46
8.1.40.0050.00317.56
8.1.30.0040.00417.68
8.1.20.0000.00717.62
8.1.10.0000.00717.49
8.1.00.0040.00417.38
8.0.300.0030.00620.01
8.0.290.0040.00416.75
8.0.280.0000.00718.44
8.0.270.0030.00317.26
8.0.260.0030.00317.20
8.0.250.0070.00017.03
8.0.240.0030.00517.00
8.0.230.0080.00017.01
8.0.220.0060.00316.99
8.0.210.0000.00716.95
8.0.200.0060.00017.06
8.0.190.0050.00316.86
8.0.180.0060.00316.96
8.0.170.0040.00417.07
8.0.160.0040.00416.96
8.0.150.0050.00216.77
8.0.140.0100.00016.76
8.0.130.0060.00313.45
8.0.120.0040.00416.80
8.0.110.0040.00416.79
8.0.100.0000.00716.81
8.0.90.0070.00016.86
8.0.80.0120.00316.95
8.0.70.0000.00817.07
8.0.60.0070.00016.93
8.0.50.0000.00716.78
8.0.30.0100.00917.09
8.0.20.0110.00817.43
8.0.10.0040.00416.96
8.0.00.0070.01016.86
7.4.330.0000.00615.55
7.4.320.0000.00616.71
7.4.300.0000.00616.63
7.4.290.0030.00316.55
7.4.280.0000.00916.68
7.4.270.0000.00716.68
7.4.260.0070.00016.61
7.4.250.0000.00816.50
7.4.240.0060.00316.65
7.4.230.0040.00416.75
7.4.220.0030.01616.57
7.4.210.0070.01116.64
7.4.200.0040.00416.66
7.4.160.0060.01116.64
7.4.150.0060.01317.40
7.4.140.0080.01117.86
7.4.130.0090.01016.71
7.4.120.0080.00816.59
7.4.110.0060.01216.64
7.4.100.0060.01216.37
7.4.90.0120.00616.59
7.4.80.0090.00919.39
7.4.70.0070.01016.73
7.4.60.0040.01216.52
7.4.50.0150.00016.32
7.4.40.0070.01016.39
7.4.30.0090.00916.67
7.4.00.0070.01014.73
7.3.330.0000.00513.23
7.3.320.0050.00013.29
7.3.310.0000.00816.34
7.3.300.0000.00716.23
7.3.290.0080.00016.43
7.3.280.0070.01116.40
7.3.270.0080.00817.40
7.3.260.0050.01616.52
7.3.250.0110.00816.48
7.3.240.0070.01116.41
7.3.230.0030.01416.39
7.3.210.0130.00316.34
7.3.200.0040.01216.52
7.3.190.0040.01416.42
7.3.180.0110.00616.49
7.3.170.0090.00616.55
7.3.160.0090.01216.43
7.3.10.0030.01016.77
7.3.00.0000.01316.57
7.2.330.0110.00716.57
7.2.320.0060.01616.69
7.2.310.0030.01216.33
7.2.300.0000.01616.63
7.2.290.0040.01216.79
7.2.130.0060.00616.85
7.2.120.0080.00416.74
7.2.110.0130.00016.63
7.2.100.0040.00816.95
7.2.90.0000.01216.93
7.2.80.0000.01317.03
7.2.70.0070.00316.89
7.2.60.0050.00716.76
7.2.50.0000.01616.86
7.2.40.0070.00416.72
7.2.30.0030.00617.05
7.2.20.0040.00716.78
7.2.10.0000.01316.86
7.2.00.0030.00816.51
7.1.250.0070.00315.74
7.1.200.0070.00715.63
7.1.70.0040.00417.11
7.1.60.0000.01117.06
7.1.00.0030.06322.45
7.0.200.0030.01316.47
7.0.140.0130.05022.00
7.0.130.0070.06322.04
7.0.120.0100.05722.06
7.0.110.0070.06721.94
7.0.100.0100.05322.07
7.0.90.0100.05322.14
7.0.80.0100.05322.18
7.0.70.0070.05722.16
7.0.60.0070.05721.93
7.0.50.0100.05322.01
7.0.40.0030.06022.00
7.0.30.0130.05322.05
7.0.20.0100.05722.12
7.0.10.0100.05322.05
7.0.00.0100.05322.11
5.6.290.0200.05720.88
5.6.280.0070.05721.12
5.6.270.0100.06021.04
5.6.260.0070.06320.86
5.6.250.0100.05321.07
5.6.240.0070.06020.89
5.6.230.0100.06021.11
5.6.220.0170.04721.04
5.6.210.0100.05320.92
5.6.200.0030.06020.73
5.6.190.0070.06321.03
5.6.180.0000.06320.86
5.6.170.0200.04320.99
5.6.160.0200.05020.84
5.6.150.0100.05721.06
5.6.140.0030.06321.05
5.6.130.0200.04721.03
5.6.120.0070.06020.77
5.6.110.0130.05320.83
5.6.100.0030.06021.02
5.6.90.0070.05720.71
5.6.80.0030.05720.41
5.6.70.0130.04720.22
5.6.60.0070.05720.44
5.6.50.0100.04720.43
5.6.40.0100.05020.41
5.6.30.0100.05320.18
5.6.20.0070.05320.13
5.6.10.0030.05720.15
5.6.00.0030.05720.17

preferences:
35.45 ms | 400 KiB | 5 Q