3v4l.org

run code in 300+ PHP versions simultaneously
<?php $total = 0.0; $expected = 1.0; for ($i = 0; $i < 10; $i++) { $total += 0.1; } echo "added ten cents\n"; // since we added 0.1 € x 10 times, we now have 1€ in total, right? if ($total == $expected) { echo "I have {$expected}€. All is good in the realm."; } else { echo "WTF? Where is my money? I only have {$total}€!!!!\n"; echo "\$total holds:"; var_dump($total); } $balance = 50.03; $debit = 45.42; $expected_balance = 4.61; $real_balance = $balance - $debit; if ($real_balance !== $expected_balance) { echo "balance mismatch: "; var_dump($real_balance); }

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.00619.36
8.3.70.0070.00718.18
8.3.60.0090.00618.30
8.3.50.0070.01016.25
8.3.40.0100.01022.03
8.3.30.0210.00018.75
8.3.20.0000.00824.18
8.3.10.0100.01024.66
8.3.00.0040.00426.16
8.2.200.0030.00618.88
8.2.190.0120.00318.29
8.2.180.0090.00625.92
8.2.170.0040.01122.96
8.2.160.0100.00322.96
8.2.150.0000.00725.66
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0040.00426.35
8.2.110.0060.00320.99
8.2.100.0070.00417.72
8.2.90.0000.00917.75
8.2.80.0000.00818.92
8.2.70.0040.00417.38
8.2.60.0070.00717.65
8.2.50.0070.00517.83
8.2.40.0080.00417.83
8.2.30.0050.00618.26
8.2.20.0060.00517.83
8.2.10.0110.00318.44
8.2.00.0070.00518.41
8.1.290.0030.00630.84
8.1.280.0040.01225.92
8.1.270.0040.00423.99
8.1.260.0070.00728.09
8.1.250.0000.00728.09
8.1.240.0110.00022.09
8.1.230.0040.00820.89
8.1.220.0000.00917.74
8.1.210.0060.00318.77
8.1.200.0000.01017.23
8.1.190.0090.00316.99
8.1.180.0070.00517.61
8.1.170.0080.00417.67
8.1.160.0060.00518.11
8.1.150.0080.00518.02
8.1.140.0090.00317.95
8.1.130.0070.00518.70
8.1.120.0050.00717.32
8.1.110.0080.00417.30
8.1.100.0080.00317.39
8.1.90.0030.01017.23
8.1.80.0040.00817.38
8.1.70.0080.00317.30
8.1.60.0120.00317.41
8.1.50.0070.00717.57
8.1.40.0070.00617.51
8.1.30.0070.00717.49
8.1.20.0120.00317.54
8.1.10.0060.00717.32
8.1.00.0100.00317.21
8.0.300.0030.00618.77
8.0.290.0080.00016.63
8.0.280.0060.00517.48
8.0.270.0060.00617.28
8.0.260.0060.00618.41
8.0.250.0050.00716.76
8.0.240.0040.01016.94
8.0.230.0100.00116.82
8.0.220.0080.00416.75
8.0.210.0070.00516.72
8.0.200.0100.00216.75
8.0.190.0080.00516.81
8.0.180.0080.00516.76
8.0.170.0080.00516.78
8.0.160.0100.00316.79
8.0.150.0090.00316.67
8.0.140.0040.00816.74
8.0.130.0090.00214.98
8.0.120.0090.00416.67
8.0.110.0070.00616.65
8.0.100.0080.00416.73
8.0.90.0110.00116.72
8.0.80.0110.00516.76
8.0.70.0120.00016.70
8.0.60.0030.00916.66
8.0.50.0100.00416.77
8.0.30.0120.00416.63
8.0.20.0110.00916.89
8.0.10.0080.00416.70
8.0.00.0170.00316.75
7.4.330.0090.00016.03
7.4.320.0100.00216.48
7.4.300.0080.00316.56
7.4.290.0080.00416.57
7.4.280.0020.01116.47
7.4.270.0100.00216.56
7.4.260.0040.00716.55
7.4.250.0080.00416.55
7.4.240.0050.00616.52
7.4.230.0090.00316.50
7.4.220.0060.00416.55
7.4.210.0100.00816.53
7.4.200.0100.00216.57
7.4.190.0080.00816.52
7.4.180.0070.00716.52
7.4.160.0120.00316.52
7.4.150.0120.00316.52
7.4.140.0190.00016.52
7.4.130.0080.00916.50
7.4.120.0110.00816.53
7.4.110.0080.00816.51
7.4.100.0120.00516.37
7.4.90.0150.00616.38
7.4.80.0090.00816.40
7.4.70.0100.00616.34
7.4.60.0120.00616.46
7.4.50.0110.00616.41
7.4.40.0130.00416.39
7.4.30.0150.00416.41
7.4.20.0120.00816.50
7.4.10.0110.00816.40
7.4.00.0070.01016.50
7.3.330.0070.00416.45
7.3.320.0050.00514.85
7.3.310.0070.00416.39
7.3.300.0000.01116.45
7.3.290.0050.00916.40
7.3.280.0100.00516.52
7.3.270.0100.00516.52
7.3.260.0080.00816.55
7.3.250.0150.00016.52
7.3.240.0090.00616.52
7.3.230.0100.00716.42
7.3.220.0120.00616.36
7.3.210.0090.00916.35
7.3.200.0100.00816.39
7.3.190.0130.00516.40
7.3.180.0140.00516.43
7.3.170.0130.00316.48
7.3.160.0120.00516.40
7.3.150.0170.00316.59
7.3.140.0190.00116.50
7.3.130.0110.01016.38
7.3.120.0120.00816.51
7.3.110.0130.00516.25
7.3.100.0100.01016.29
7.3.90.0160.00616.59
7.3.80.0170.00416.33
7.3.70.0140.00716.39
7.3.60.0160.00616.34
7.3.50.0150.00616.41
7.3.40.0160.00616.39
7.3.30.0150.00516.34
7.3.20.0120.01116.95
7.3.10.0180.00316.81
7.3.00.0150.00716.83
7.2.340.0140.00716.58
7.2.330.0090.00716.53
7.2.320.0110.00516.40
7.2.310.0100.00816.39
7.2.300.0100.00816.55
7.2.290.0130.00316.59
7.2.280.0150.00516.60
7.2.270.0120.00816.52
7.2.260.0090.01116.54
7.2.250.0120.00916.46
7.2.240.0140.00416.45
7.2.230.0120.00616.39
7.2.220.0120.00616.43
7.2.210.0130.00816.38
7.2.200.0160.00716.49
7.2.190.0140.00916.46
7.2.180.0130.00916.51
7.2.170.0100.01116.51
7.2.160.0160.00616.53
7.2.150.0180.00416.97
7.2.140.0110.01317.08
7.2.130.0160.00516.97
7.2.120.0180.00317.16
7.2.110.0130.00917.03
7.2.100.0180.00517.13
7.2.90.0120.01017.09
7.2.80.0170.00517.02
7.2.70.0130.01017.06
7.2.60.0150.00717.08
7.2.50.0130.00917.08
7.2.40.0180.00317.13
7.2.30.0130.00817.21
7.2.20.0140.00617.13
7.2.10.0130.01017.12
7.2.00.0130.00817.02

preferences:
53.61 ms | 401 KiB | 5 Q