3v4l.org

run code in 300+ PHP versions simultaneously
<?php function delta(float $a, float $b, float $c): float { return ($b^2) - (4*$a*$c); } echo "Delta wynosi: ".delta(10,2,3) . "\n"; function msc_zerowe(float $a, float $b, float $c): float { return (-$b-sqrt(delta($a, $b, $c)))/2*$a; } echo "Miejsce zerowe wynosi: ".msc_zerowe(1, 25, 3);

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.0110.01118.11
8.3.50.0140.00018.18
8.3.40.0130.00618.85
8.3.30.0120.00318.79
8.3.20.0070.00021.85
8.3.10.0040.00423.36
8.3.00.0040.00423.34
8.2.180.0140.00018.08
8.2.170.0090.00522.96
8.2.160.0070.00719.97
8.2.150.0070.00724.18
8.2.140.0110.00024.66
8.2.130.0050.00320.94
8.2.120.0040.00426.35
8.2.110.0040.00421.04
8.2.100.0060.00617.72
8.2.90.0000.00818.16
8.2.80.0000.00818.03
8.2.70.0080.00018.03
8.2.60.0000.00817.63
8.2.50.0000.00718.10
8.2.40.0060.00320.42
8.2.30.0070.00020.53
8.2.20.0000.00718.02
8.2.10.0000.00817.91
8.2.00.0000.00717.96
8.1.280.0150.00025.92
8.1.270.0070.00022.19
8.1.260.0030.00626.35
8.1.250.0040.00428.09
8.1.240.0040.00422.48
8.1.230.0070.00420.94
8.1.220.0080.00017.76
8.1.210.0050.01018.77
8.1.200.0040.00417.23
8.1.190.0060.00317.23
8.1.180.0030.00618.10
8.1.170.0060.00318.54
8.1.160.0050.00218.83
8.1.150.0050.00220.34
8.1.140.0000.00717.71
8.1.130.0030.00318.87
8.1.120.0030.00317.40
8.1.110.0000.00817.32
8.1.100.0040.00417.41
8.1.90.0040.00417.30
8.1.80.0040.00417.43
8.1.70.0030.00317.30
8.1.60.0030.00617.41
8.1.50.0000.00817.38
8.1.40.0050.00317.36
8.1.30.0080.00017.54
8.1.20.0040.00417.64
8.1.10.0070.00017.42
8.1.00.0030.00617.32
8.0.300.0040.00419.86
8.0.290.0000.00816.58
8.0.280.0030.00318.40
8.0.270.0080.00017.26
8.0.260.0060.00316.98
8.0.250.0000.00717.04
8.0.240.0000.00817.05
8.0.230.0000.00717.07
8.0.220.0000.00716.89
8.0.210.0000.00716.99
8.0.200.0040.00417.03
8.0.190.0000.00817.06
8.0.180.0050.00316.98
8.0.170.0060.00316.87
8.0.160.0000.00817.02
8.0.150.0100.00016.89
8.0.140.0030.00316.94
8.0.130.0000.00513.41
8.0.120.0040.00416.89
8.0.110.0040.00416.99
8.0.100.0000.00716.94
8.0.90.0040.00416.82
8.0.80.0070.00716.89
8.0.70.0000.00816.80
8.0.60.0040.00416.95
8.0.50.0000.00716.98
8.0.30.0070.01316.92
8.0.20.0150.00517.40
8.0.10.0000.00717.09
8.0.00.0130.00516.64
7.4.330.0050.00015.55
7.4.320.0060.00016.50
7.4.300.0000.00716.51
7.4.290.0000.00816.54
7.4.280.0040.00416.52
7.4.270.0030.00316.54
7.4.260.0000.01016.55
7.4.250.0000.00816.55
7.4.240.0000.00716.45
7.4.230.0040.00416.65
7.4.220.0000.00816.62
7.4.210.0120.00316.41
7.4.200.0000.00716.61
7.4.160.0090.00716.40
7.4.140.0080.01017.86
7.4.130.0130.00616.46
7.4.120.0080.00916.48
7.4.110.0060.01116.44
7.4.100.0090.00616.56
7.4.90.0130.00316.49
7.4.80.0120.01219.39
7.4.70.0130.01016.44
7.4.60.0030.01316.30
7.4.50.0110.00416.72
7.4.40.0040.01116.39
7.4.00.0110.00415.09
7.3.330.0050.00013.17
7.3.320.0060.00013.31
7.3.310.0030.00316.20
7.3.300.0030.00316.18
7.3.290.0080.00916.33
7.3.280.0110.00716.30
7.3.260.0100.00916.38
7.3.250.0110.00616.47
7.3.240.0070.01116.41
7.3.230.0070.01016.63
7.3.210.0250.02216.43
7.3.200.0080.00816.27
7.3.190.0030.01316.71
7.3.180.0060.00916.43
7.3.170.0140.00716.54
7.3.160.0060.00916.36
7.3.120.0060.00615.04
7.3.110.0000.01314.58
7.3.100.0070.00414.91
7.3.90.0070.00714.74
7.3.80.0040.01414.68
7.3.70.0110.00414.61
7.3.60.0050.00514.61
7.3.50.0040.01214.61
7.3.40.0000.01114.70
7.3.30.0030.01014.88
7.3.20.0030.01316.58
7.3.10.0110.00416.47
7.3.00.0070.01016.34
7.2.330.0140.00316.82
7.2.320.0060.01316.89
7.2.310.0030.01416.70
7.2.300.0150.00916.48
7.2.290.0110.01216.48
7.2.240.0090.00315.26
7.2.230.0030.00815.21
7.2.220.0040.00714.98
7.2.210.0080.00615.02
7.2.200.0030.01014.89
7.2.190.0030.01314.89
7.2.180.0080.00414.80
7.2.170.0030.01315.07
7.2.160.0060.00915.19
7.2.150.0060.01016.97
7.2.140.0060.00617.00
7.2.130.0100.00716.81
7.2.120.0110.00616.75
7.2.110.0100.00416.86
7.2.100.0080.01016.67
7.2.90.0080.00416.73
7.2.80.0060.00916.63
7.2.70.0090.01016.64
7.2.60.0050.00816.92
7.2.50.0070.01016.64
7.2.40.0080.00716.87
7.2.30.0080.01217.68
7.2.20.0080.00817.75
7.2.10.0110.01217.81
7.2.00.0120.01117.86
7.1.330.0030.00915.84
7.1.320.0070.01015.89
7.1.310.0000.01115.61
7.1.300.0140.00015.91
7.1.290.0070.00715.71
7.1.280.0040.00715.46
7.1.270.0000.01015.88
7.1.260.0060.00915.83
7.1.250.0040.01215.47
7.1.200.0000.01515.82
7.1.150.0080.01718.50
7.1.140.0140.01018.36
7.1.130.0090.01118.45
7.1.120.0090.01318.47
7.1.110.0070.01317.79
7.1.100.0060.01317.71
7.1.90.0100.01318.03
7.1.80.0090.01418.22
7.1.70.0070.00917.13
7.1.60.0280.02135.00
7.1.50.0310.01434.66
7.1.40.0330.01734.36
7.1.30.0260.01534.33
7.1.20.0330.01134.44
7.1.10.0110.00616.68
7.1.00.0040.01716.50

preferences:
61.64 ms | 400 KiB | 5 Q