3v4l.org

run code in 300+ PHP versions simultaneously
<?php header/("content-type: text/html;charset=utf-8"); $a = 5; $b = 6; $c = 7; $determinant = ($b * $b)- 4 * ($a * $c); if($determinant > 0) { $x1=(-$b + sqrt($determinant))/(2 * $a); $x2=(-$b - sqrt($determinant))/(2 * $a); echo $x1; echo $x2; } else if ($determinant==0){ $x1 = $x2 = (-$b / (2*$a)); } else{ echo "on ne calcule pas ça"; } ?>

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.0030.01316.62
8.3.50.0090.00618.05
8.3.40.0130.00318.67
8.3.30.0110.00718.88
8.3.20.0080.00020.09
8.3.10.0070.00023.48
8.3.00.0060.00319.38
8.2.180.0180.00316.75
8.2.170.0070.01122.96
8.2.160.0100.00719.29
8.2.150.0080.00024.18
8.2.140.0130.00624.66
8.2.130.0030.00620.53
8.2.120.0000.00726.35
8.2.110.0040.00422.06
8.2.100.0090.00318.03
8.2.90.0030.00517.97
8.2.80.0050.00319.15
8.2.70.0000.00917.63
8.2.60.0080.00018.04
8.2.50.0040.00418.07
8.2.40.0040.00419.52
8.2.30.0030.00320.69
8.2.20.0030.00617.75
8.2.10.0070.00018.02
8.2.00.0000.00817.96
8.1.280.0150.00325.92
8.1.270.0030.00623.93
8.1.260.0040.00428.09
8.1.250.0040.00428.09
8.1.240.0080.00022.65
8.1.230.0040.00720.98
8.1.220.0040.00417.74
8.1.210.0050.00318.77
8.1.200.0060.00317.47
8.1.190.0000.00817.60
8.1.180.0000.00818.10
8.1.170.0050.00318.64
8.1.160.0000.00722.03
8.1.150.0000.00818.80
8.1.140.0040.00419.59
8.1.130.0050.00217.58
8.1.120.0040.00417.43
8.1.110.0070.00017.31
8.1.100.0000.00717.39
8.1.90.0040.00717.25
8.1.80.0000.00817.24
8.1.70.0000.00717.41
8.1.60.0030.00617.50
8.1.50.0000.00817.48
8.1.40.0040.00417.46
8.1.30.0040.00417.61
8.1.20.0080.00017.53
8.1.10.0080.00017.49
8.1.00.0040.00417.32
8.0.300.0030.00320.07
8.0.290.0040.00416.75
8.0.280.0000.00718.39
8.0.270.0000.00717.27
8.0.260.0080.00017.14
8.0.250.0000.00617.01
8.0.240.0040.00416.93
8.0.230.0030.00316.94
8.0.220.0000.00716.87
8.0.210.0080.00016.82
8.0.200.0030.00516.93
8.0.190.0000.00817.03
8.0.180.0000.00817.02
8.0.170.0000.00716.88
8.0.160.0030.00516.97
8.0.150.0000.00716.88
8.0.140.0000.00716.95
8.0.130.0000.00613.44
8.0.120.0030.00616.94
8.0.110.0000.00716.98
8.0.100.0030.00516.80
8.0.90.0050.00316.84
8.0.80.0030.01716.98
8.0.70.0000.00716.82
8.0.60.0040.00416.88
8.0.50.0000.00816.86
8.0.30.0150.00517.21
8.0.20.0150.00817.40
8.0.10.0050.00217.07
8.0.00.0100.00916.71
7.4.330.0050.00016.83
7.4.320.0040.00416.42
7.4.300.0060.00016.48
7.4.290.0100.00016.51
7.4.280.0000.00816.51
7.4.270.0070.00016.64
7.4.260.0040.00416.59
7.4.250.0000.00716.54
7.4.240.0020.00516.46
7.4.230.0040.00416.40
7.4.220.0000.01816.74
7.4.210.0040.01016.58
7.4.200.0030.00316.60
7.4.160.0100.00516.76
7.4.150.0120.00617.40
7.4.140.0150.00617.86
7.4.130.0120.00716.47
7.4.120.0140.00716.53
7.4.110.0050.01416.55
7.4.100.0140.00716.62
7.4.90.0080.00816.51
7.4.80.0120.00419.39
7.4.70.0030.01616.50
7.4.60.0030.01316.54
7.4.50.0070.00716.64
7.4.40.0060.01216.63
7.4.30.0120.00916.75
7.4.00.0060.00915.21
7.3.330.0040.00413.24
7.3.320.0000.00513.24
7.3.310.0070.00016.36
7.3.300.0020.00516.35
7.3.290.0130.00416.35
7.3.280.0060.01116.36
7.3.270.0090.00917.40
7.3.260.0100.00716.68
7.3.250.0100.01116.47
7.3.240.0100.00816.40
7.3.230.0070.01016.39
7.3.210.0070.01116.46
7.3.200.0100.00616.29
7.3.190.0100.01316.35
7.3.180.0030.01816.50
7.3.170.0130.00716.36
7.3.160.0040.02016.41
7.2.330.0150.01216.63
7.2.320.0070.01016.24
7.2.310.0110.01116.59
7.2.300.0130.00316.54
7.2.290.0060.00916.46
7.2.110.0040.01116.68
7.2.60.0250.00716.62
7.2.00.0060.00619.26
7.1.200.0050.00215.75
7.1.100.0040.01117.91
7.1.70.0100.00016.90
7.1.60.0170.00719.36
7.1.50.0030.01716.68
7.1.00.0000.07722.39
7.0.200.0050.00216.93
7.0.60.0030.09019.87
7.0.50.0130.07717.91
7.0.40.0100.06019.90
7.0.30.0230.04720.13
7.0.20.0130.04320.33
7.0.10.0030.08720.30
7.0.00.0030.05320.00
5.6.280.0030.05721.04
5.6.210.0130.06320.50
5.6.200.0000.04318.10
5.6.190.0030.07720.41
5.6.180.0430.06720.64
5.6.170.0200.04320.47
5.6.160.0130.06020.49
5.6.150.0100.06018.16
5.6.140.0100.07718.11
5.6.130.0030.07018.20
5.6.120.0070.04321.12
5.6.110.0030.04020.97
5.6.100.0030.06720.98
5.6.90.0130.08021.09
5.6.80.0130.07320.38
5.5.350.0230.07020.40
5.5.340.0130.06017.98
5.5.330.0130.07020.56
5.5.320.0100.07720.41
5.5.310.0200.07720.50
5.5.300.0000.04017.98
5.5.290.0130.05717.91
5.5.280.0000.07720.80
5.5.270.0200.05320.96
5.5.260.0130.07720.86
5.5.250.0100.06020.54
5.5.240.0230.08320.25

preferences:
63.07 ms | 400 KiB | 5 Q