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(1,25,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.0140.00718.43
8.3.50.0090.00616.36
8.3.40.0120.01218.89
8.3.30.0070.01118.79
8.3.20.0050.00321.77
8.3.10.0060.00323.52
8.3.00.0080.00023.71
8.2.180.0090.00918.07
8.2.170.0070.00722.96
8.2.160.0140.00020.03
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0000.00721.04
8.2.110.0070.00322.16
8.2.100.0080.00417.60
8.2.90.0050.00322.32
8.2.80.0060.00317.97
8.2.70.0030.00617.80
8.2.60.0050.00318.22
8.2.50.0040.00418.10
8.2.40.0060.00320.59
8.2.30.0040.00420.61
8.2.20.0020.00518.11
8.2.10.0000.00817.92
8.2.00.0050.00317.95
8.1.280.0170.00325.92
8.1.270.0040.00422.20
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0060.00322.34
8.1.230.0000.01120.66
8.1.220.0050.00517.74
8.1.210.0040.00418.98
8.1.200.0030.00617.22
8.1.190.0000.00817.13
8.1.180.0030.00618.10
8.1.170.0040.00418.62
8.1.160.0040.00418.89
8.1.150.0050.00320.34
8.1.140.0000.00717.71
8.1.130.0030.00318.93
8.1.120.0070.00017.35
8.1.110.0040.00417.29
8.1.100.0040.00417.33
8.1.90.0040.00417.41
8.1.80.0070.00017.41
8.1.70.0070.00017.47
8.1.60.0000.00917.49
8.1.50.0000.00817.36
8.1.40.0000.00817.37
8.1.30.0000.00817.65
8.1.20.0020.00517.55
8.1.10.0030.00617.54
8.1.00.0000.00917.45
8.0.300.0040.00420.03
8.0.290.0080.00016.63
8.0.280.0070.00018.46
8.0.270.0070.00017.34
8.0.260.0060.00316.93
8.0.250.0050.00316.99
8.0.240.0040.00416.93
8.0.230.0030.00316.90
8.0.220.0000.00716.97
8.0.210.0000.00716.98
8.0.200.0040.00416.88
8.0.190.0040.00416.92
8.0.180.0000.00816.90
8.0.170.0030.00716.97
8.0.160.0000.00717.02
8.0.150.0040.00416.98
8.0.140.0000.00716.91
8.0.130.0030.00313.35
8.0.120.0000.00716.93
8.0.110.0040.00416.83
8.0.100.0030.00316.98
8.0.90.0000.00716.91
8.0.80.0090.00616.96
8.0.70.0040.00417.02
8.0.60.0070.00016.72
8.0.50.0040.00416.79
8.0.30.0100.01017.05
8.0.20.0080.01017.40
8.0.10.0020.00516.90
8.0.00.0090.00916.79
7.4.330.0020.00215.55
7.4.320.0000.00616.48
7.4.300.0060.00016.54
7.4.290.0050.00316.56
7.4.280.0050.00316.50
7.4.270.0030.00316.46
7.4.260.0000.00716.54
7.4.250.0000.00716.42
7.4.240.0000.00716.46
7.4.230.0000.00716.44
7.4.220.0000.00716.64
7.4.210.0060.01216.44
7.4.200.0000.00916.55
7.4.160.0070.00916.34
7.4.140.0150.00617.86
7.4.130.0070.01016.49
7.4.120.0100.00716.45
7.4.110.0130.01016.60
7.4.100.0040.01616.62
7.4.90.0090.00916.43
7.4.80.0030.01419.39
7.4.70.0090.01316.48
7.4.60.0060.00916.50
7.4.50.0100.00716.45
7.4.40.0130.00316.71
7.4.00.0040.00914.71
7.3.330.0020.00213.19
7.3.320.0060.00013.23
7.3.310.0030.00316.21
7.3.300.0000.00616.32
7.3.290.0080.00716.31
7.3.280.0090.00716.29
7.3.260.0110.00816.44
7.3.250.0100.00816.57
7.3.240.0100.00816.49
7.3.230.0070.01116.59
7.3.210.0130.00316.71
7.3.200.0130.00316.54
7.3.190.0100.00616.60
7.3.180.0110.00416.64
7.3.170.0100.01016.33
7.3.160.0120.00316.63
7.2.330.0120.00616.38
7.2.320.0250.01916.73
7.2.310.0100.00716.46
7.2.300.0150.00616.66
7.2.290.0060.01116.71
7.2.60.0060.00617.09
7.2.30.0130.01520.08
7.2.20.0110.01319.77
7.2.10.0120.01119.95
7.2.00.0130.00919.57
7.1.200.0070.00715.75
7.1.150.0130.00918.74
7.1.140.0050.01418.77
7.1.130.0120.01018.69
7.1.120.0130.00818.66
7.1.110.0070.01318.20
7.1.100.0100.01117.95
7.1.90.0100.00918.21
7.1.80.0080.01117.96
7.1.70.0100.01217.21
7.1.60.0300.01535.18
7.1.50.0310.01434.58
7.1.40.0300.02134.41
7.1.30.0350.01834.65
7.1.20.0270.02434.48
7.1.10.0080.01516.50
7.1.00.0080.01516.77

preferences:
51.33 ms | 400 KiB | 5 Q