3v4l.org

run code in 300+ PHP versions simultaneously
<?php $price = 1080; $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.80.0030.00616.63
8.3.70.0090.00616.48
8.3.60.0150.00016.50
8.3.50.0130.00521.91
8.3.40.0110.00318.50
8.3.30.0140.00018.59
8.3.20.0030.00618.98
8.3.10.0040.00421.77
8.3.00.0000.00819.66
8.2.200.0090.00018.17
8.2.190.0060.01316.88
8.2.180.0110.01116.63
8.2.170.0070.01422.96
8.2.160.0140.00019.11
8.2.150.0000.00724.18
8.2.140.0040.00424.66
8.2.130.0050.00319.39
8.2.120.0080.00026.35
8.2.110.0060.00320.97
8.2.100.0110.00017.72
8.2.90.0050.00317.60
8.2.80.0000.00818.73
8.2.70.0040.00417.63
8.2.60.0040.00417.93
8.2.50.0060.00318.07
8.2.40.0000.00918.16
8.2.30.0040.00418.01
8.2.20.0040.00418.18
8.2.10.0000.00818.01
8.2.00.0000.00817.75
8.1.290.0000.00930.84
8.1.280.0090.00625.92
8.1.270.0050.00222.10
8.1.260.0080.00026.35
8.1.250.0060.00328.09
8.1.240.0080.00022.19
8.1.230.0070.00417.71
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0030.00617.35
8.1.190.0040.00417.23
8.1.180.0030.00518.10
8.1.170.0050.00318.64
8.1.160.0060.00318.94
8.1.150.0030.00518.90
8.1.140.0070.00019.60
8.1.130.0030.00317.40
8.1.120.0000.00717.48
8.1.110.0000.00817.42
8.1.100.0060.00317.49
8.1.90.0040.00417.53
8.1.80.0050.00217.52
8.1.70.0070.00017.52
8.1.60.0060.00317.66
8.1.50.0030.00617.46
8.1.40.0050.00517.52
8.1.30.0040.00417.64
8.1.20.0040.00417.62
8.1.10.0000.00917.54
8.1.00.0040.00417.50
8.0.300.0040.00418.77
8.0.290.0040.00416.75
8.0.280.0000.00718.33
8.0.270.0000.00717.25
8.0.260.0030.00316.80
8.0.250.0040.00416.88
8.0.240.0030.00516.86
8.0.230.0000.00716.95
8.0.220.0030.00616.89
8.0.210.0030.00316.90
8.0.200.0060.00016.97
8.0.190.0000.00816.93
8.0.180.0080.00416.98
8.0.170.0070.00016.90
8.0.160.0040.00416.86
8.0.150.0050.00316.80
8.0.140.0030.00616.75
8.0.130.0050.00013.35
8.0.120.0040.00416.77
8.0.110.0080.00016.95
8.0.100.0000.00716.95
8.0.90.0040.00416.82
8.0.80.0070.00716.90
8.0.70.0030.00516.84
8.0.60.0000.00716.88
8.0.50.0000.00716.86
8.0.30.0110.00817.01
8.0.20.0100.01117.40
8.0.10.0000.00716.84
8.0.00.0060.01116.83
7.4.330.0050.00015.55
7.4.320.0030.00316.56
7.4.300.0060.00016.66
7.4.290.0020.00516.69
7.4.280.0000.00816.52
7.4.270.0030.00316.43
7.4.260.0030.00316.59
7.4.250.0040.00416.47
7.4.240.0080.00016.52
7.4.230.0000.00716.35
7.4.220.0060.01316.55
7.4.210.0080.00916.47
7.4.200.0000.00716.44
7.4.160.0050.01216.54
7.4.150.0060.01217.40
7.4.140.0080.01217.86
7.4.130.0070.01016.54
7.4.120.0070.01016.58
7.4.110.0130.00416.34
7.4.100.0080.00916.48
7.4.90.0100.01016.32
7.4.80.0050.01619.39
7.4.70.0030.01916.45
7.4.60.0030.01316.32
7.4.50.0090.00916.41
7.4.40.0110.00916.66
7.4.30.0160.00616.43
7.4.00.0070.01015.18
7.3.330.0050.00013.31
7.3.320.0000.00513.16
7.3.310.0000.00816.17
7.3.300.0030.00316.29
7.3.290.0030.00316.35
7.3.280.0130.00616.38
7.3.270.0090.00917.40
7.3.260.0100.01216.45
7.3.250.0070.01216.42
7.3.240.0090.00816.50
7.3.230.0070.01016.41
7.3.210.0130.00316.52
7.3.200.0100.00716.39
7.3.190.0120.00916.32
7.3.180.0080.01216.45
7.3.170.0110.01116.45
7.3.160.0090.00916.37
7.2.330.0120.01216.37
7.2.320.0100.01316.71
7.2.310.0150.00316.70
7.2.300.0120.00616.54
7.2.290.0080.00816.63
7.2.60.0040.01116.67
7.1.200.0030.01015.48
7.1.70.0080.00017.16
7.1.60.0040.00717.17
7.1.00.0030.06022.46
7.0.200.0000.01516.80
7.0.140.0070.05722.15
7.0.130.0070.05722.12
7.0.120.0030.05722.06
7.0.110.0070.06322.11
7.0.100.0130.05022.01
7.0.90.0170.05722.23
7.0.80.0100.05322.13
7.0.70.0030.06322.15
7.0.60.0100.05721.95
7.0.50.0200.04321.96
7.0.40.0100.05321.98
7.0.30.0000.06322.13
7.0.20.0070.05722.11
7.0.10.0130.05022.12
7.0.00.0000.06022.01
5.6.290.0200.04720.87
5.6.280.0070.05320.93
5.6.270.0170.05320.86
5.6.260.0170.04720.93
5.6.250.0000.06321.11
5.6.240.0100.08020.98
5.6.230.0100.06021.12
5.6.220.0100.05320.83
5.6.210.0030.06020.90
5.6.200.0070.06021.03
5.6.190.0130.05321.04
5.6.180.0130.05021.04
5.6.170.0100.05720.77
5.6.160.0070.05320.88
5.6.150.0070.06020.81
5.6.140.0100.05720.88
5.6.130.0030.06321.00
5.6.120.0070.06320.91
5.6.110.0100.06321.03
5.6.100.0200.04721.03
5.6.90.0030.07721.04
5.6.80.0100.05020.43
5.6.70.0030.05320.23
5.6.60.0130.04720.25
5.6.50.0000.05720.23
5.6.40.0030.05320.41
5.6.30.0100.05020.21
5.6.20.0070.05320.21
5.6.10.0130.04720.20
5.6.00.0130.04320.41

preferences:
29.6 ms | 401 KiB | 5 Q