3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(0); include ('../function.php'); $x = htmlspecialchars($_GET['x']); $y = htmlspecialchars($_GET['y']); $z = htmlspecialchars($_GET['z']); $q = htmlspecialchars($_GET['q']); // function rekurze($q, $x) { $q = str_replace("x", '('.$x.')', $q); $qa = str_replace("x", '('. ($x+0.05) .')', $zadani); if (is_numeric($q)) { return $q; } else { eval('$result = (string)('.$q.')*1;'); eval('$resulta = (string)('.$qa.');'); if (($result-$resulta) >= 500 || $result == $resulta) { return 'NAN'; } else { return $result; } } } // $obr = imagecreatetruecolor(128, 128); imageantialias($obr, true); $bila = ImageColorAllocate ($obr, 255, 255, 255); $cerna = ImageColorAllocate ($obr, 0, 0, 0); $cervena = ImageColorAllocate ($obr, 244, 55, 55); $modra = ImageColorAllocate ($obr, 31, 58, 147); $lajna = ImageColorAllocate ($obr, 214, 195, 179); imagefill($obr, 0, 0, $bila); // if ($x%2 && $y%2) { imagestring($obr, 1, 50, 54, 'VIKITRON', $lajna); } // if (!$x) { // horizontalni ImageLine ($obr, 0, 0, 0, 128, $cerna); } if (!$y) { // vertikalni ImageLine ($obr, 0, 127, 128, 127, $cerna); ImageLine ($obr, 0, 123, 0, 128, $cerna); ImageLine ($obr, 64, 123, 64, 128, $cerna); imagestring($obr, 2, 3, 115, $x*2, $cerna); imagestring($obr, 2, 67, 115, $x*2+1, $cerna); } for ($i=0;$i<130;$i++) { $result = 0-(rekurze($q, $y+($i*0.0078)))*128+(($x+1)*128); if ($result != 'NAN') { ImageLine ($obr, $i-1, $predchozi, $i, $result, $modra); $predchozi = $result; } else { ImageLine ($obr, $i-1, 0, $i, 128, $cervena); } } // imagestring($obr, 2, 5, 0, '['.$x.'; '.$y.']', $lajna); // header('Content-type: image/png'); imagepng($obr); imagedestroy($obr); ?>

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.0210.00018.43
8.3.50.0120.00521.93
8.3.40.0090.00619.00
8.3.30.0140.00719.28
8.3.20.0000.00820.37
8.3.10.0060.00323.60
8.3.00.0040.00419.01
8.2.180.0150.00018.67
8.2.170.0120.00622.96
8.2.160.0100.01020.50
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0080.00020.73
8.2.110.0030.00622.20
8.2.100.0080.00319.36
8.2.90.0050.00317.75
8.2.80.0040.00419.23
8.2.70.0000.00818.05
8.2.60.0040.00418.16
8.2.50.0060.00318.10
8.2.40.0000.00822.40
8.2.30.0040.00418.43
8.2.20.0050.00317.81
8.2.10.0040.00418.28
8.2.00.0000.00717.81
8.1.280.0090.00625.92
8.1.270.0120.00323.91
8.1.260.0000.00826.35
8.1.250.0080.00028.09
8.1.240.0060.00322.15
8.1.230.0080.00419.20
8.1.220.0000.00817.78
8.1.210.0060.00318.77
8.1.200.0030.00617.35
8.1.190.0000.00817.38
8.1.180.0030.00618.10
8.1.170.0030.00618.75
8.1.160.0050.00222.11
8.1.150.0070.00018.73
8.1.140.0060.00617.50
8.1.130.0040.00417.97
8.1.120.0050.00217.50
8.1.110.0040.00417.57
8.1.100.0030.00517.54
8.1.90.0040.00417.47
8.1.80.0040.00417.46
8.1.70.0030.00317.52
8.1.60.0000.00817.75
8.1.50.0050.00317.71
8.1.40.0040.00417.70
8.1.30.0050.00317.84
8.1.20.0060.00317.80
8.1.10.0030.00617.78
8.1.00.0050.00317.73
8.0.300.0040.00419.96
8.0.290.0000.00717.00
8.0.280.0000.00718.47
8.0.270.0030.00317.34
8.0.260.0030.00317.44
8.0.250.0000.00817.17
8.0.240.0000.00617.09
8.0.230.0000.00717.08
8.0.220.0050.00317.09
8.0.210.0000.00717.06
8.0.200.0030.00317.24
8.0.190.0000.00717.13
8.0.180.0040.00417.12
8.0.170.0080.00017.15
8.0.160.0060.00316.97
8.0.150.0030.00517.08
8.0.140.0000.00717.06
8.0.130.0000.00613.54
8.0.120.0050.00317.07
8.0.110.0000.00716.96
8.0.100.0000.00717.13
8.0.90.0000.01016.93
8.0.80.0160.00017.02
8.0.70.0070.00017.01
8.0.60.0000.00717.01
8.0.50.0000.00717.10
8.0.30.0050.01417.12
8.0.20.0130.01017.40
8.0.10.0040.00417.00
8.0.00.0090.00816.81
7.4.330.0000.00515.00
7.4.320.0000.00616.61
7.4.300.0000.00616.59
7.4.290.0040.00416.70
7.4.280.0000.01016.70
7.4.270.0070.00016.72
7.4.260.0000.00716.62
7.4.250.0040.00416.63
7.4.240.0020.00516.61
7.4.230.0000.00716.70
7.4.220.0190.00616.61
7.4.210.0040.01116.74
7.4.200.0030.00316.41
7.4.190.0030.00516.80
7.4.160.0000.01616.89
7.4.150.0090.00917.40
7.4.140.0080.01217.86
7.4.130.0080.00916.63
7.4.120.0070.01116.70
7.4.110.0030.01316.52
7.4.100.0090.00916.58
7.4.90.0100.00716.69
7.4.80.0040.01419.39
7.4.70.0080.00916.72
7.4.60.0030.01316.66
7.4.50.0000.00816.77
7.4.40.0070.01116.55
7.4.30.0120.00316.63
7.4.00.0040.00415.23
7.3.330.0030.00313.53
7.3.320.0020.00213.33
7.3.310.0040.00416.43
7.3.300.0070.00016.50
7.3.290.0070.01416.54
7.3.280.0090.00816.56
7.3.270.0090.00917.40
7.3.260.0100.01116.66
7.3.250.0100.00816.39
7.3.240.0140.00616.38
7.3.230.0060.01116.50
7.3.210.0130.00316.48
7.3.200.0100.00716.51
7.3.190.0090.01216.44
7.3.180.0160.00016.48
7.3.170.0060.01216.54
7.3.160.0060.01016.58
7.3.120.0090.00914.95
7.2.330.0170.00616.55
7.2.320.0080.01416.60
7.2.310.0070.01016.58
7.2.300.0050.00916.53
7.2.290.0130.00416.96
7.2.00.0090.00319.17
7.1.100.0100.00318.18
7.1.70.0040.00717.23
7.1.60.0030.02019.70
7.1.50.0030.01716.80
7.1.00.0030.07722.55
7.0.200.0040.00416.67
7.0.140.0070.07321.99
7.0.60.0100.08019.98
7.0.50.0100.07717.90
7.0.40.0070.06020.31
7.0.30.0230.08020.24
7.0.20.0300.06020.31
7.0.10.0370.07020.17
7.0.00.0100.06320.11
5.6.280.0030.07321.13
5.6.210.0030.08720.71
5.6.200.0100.08318.23
5.6.190.0170.08020.62
5.6.180.4130.04720.31
5.6.170.0200.03720.56
5.6.160.0100.07320.53
5.6.150.0030.04718.16
5.6.140.0070.08018.15
5.6.130.0070.08718.25
5.6.120.0030.05721.14
5.6.110.0030.09321.16
5.6.100.0130.07321.16
5.6.90.0100.06720.97
5.6.80.0030.05020.55
5.6.70.0230.07720.55
5.5.350.0130.07020.46
5.5.340.0070.04018.02
5.5.330.0130.07720.43
5.5.320.0330.03720.14
5.5.310.0300.07020.36
5.5.300.0030.08317.96
5.5.290.0170.06017.98
5.5.280.0030.05020.79
5.5.270.0070.07320.98
5.5.260.0070.08020.90
5.5.250.0070.09020.49
5.5.240.0200.04720.14
5.4.450.0400.06719.40
5.4.440.0330.07019.32
5.4.430.0270.05019.54
5.4.420.0300.04719.28
5.4.410.0370.06719.40
5.4.400.0430.05319.17
5.4.390.0230.05719.16
5.4.380.0270.04019.00
5.4.370.0200.04018.95
5.4.360.0370.03319.16
5.4.350.0230.03719.32
5.4.340.0300.03319.17
5.4.320.0200.04019.25
5.4.310.0270.03319.20
5.4.300.0270.03318.99
5.4.290.0230.04019.26
5.4.280.0230.03719.23
5.4.270.0230.04019.20
5.4.260.0300.03019.09
5.4.250.0400.03019.22
5.4.240.0300.02718.98
5.4.230.0230.03318.99
5.4.220.0200.04019.06
5.4.210.0330.04019.16
5.4.200.0300.04319.31
5.4.190.0200.03718.98
5.4.180.0270.03018.87
5.4.170.0330.06719.16
5.4.160.0300.05319.09
5.4.150.0270.05018.94
5.4.140.0400.03716.51
5.4.130.0430.06016.37
5.4.120.0330.07016.39
5.4.110.0330.04316.21
5.4.100.0300.05016.39
5.4.90.0300.04716.60
5.4.80.0300.05016.32
5.4.70.0270.06716.53
5.4.60.0370.04716.34
5.4.50.0200.05316.45
5.4.40.0330.05016.51
5.4.30.0300.07016.55
5.4.20.0330.06716.18
5.4.10.0300.07016.43
5.4.00.0400.06315.80
5.3.290.0200.04014.78
5.3.280.0230.04014.71
5.3.270.0370.06714.62
5.3.260.0300.04314.68
5.3.250.0270.07314.55
5.3.240.0330.04714.61
5.3.230.0270.04314.85
5.3.220.0330.06714.83
5.3.210.0330.04714.76
5.3.200.0300.07014.52
5.3.190.0330.06714.52
5.3.180.0330.05014.68
5.3.170.0270.04314.61
5.3.160.0200.05014.76
5.3.150.0300.05314.63
5.3.140.0230.05014.56
5.3.130.0230.05714.63
5.3.120.0370.05014.74
5.3.110.0330.04314.50
5.3.100.0270.04013.97
5.3.90.0370.02714.17
5.3.80.0270.03714.13
5.3.70.0300.07714.06
5.3.60.0430.03713.94
5.3.50.0330.06314.06
5.3.40.0400.07013.96
5.3.30.0370.06313.87
5.3.20.0330.04013.70
5.3.10.0230.04013.59
5.3.00.0200.04013.75
5.2.170.0300.05711.14
5.2.160.0270.06011.10
5.2.150.0270.03011.19
5.2.140.0330.03311.34
5.2.130.0270.05011.09
5.2.120.0300.05011.09
5.2.110.0270.03011.04
5.2.100.0230.02711.25
5.2.90.0230.05311.09
5.2.80.0270.03011.29
5.2.70.0270.06011.29
5.2.60.0200.04711.05
5.2.50.0330.05010.99
5.2.40.0330.04311.09
5.2.30.0230.04710.92
5.2.20.0230.05311.16
5.2.10.0230.06011.12
5.2.00.0270.05310.98
5.1.60.0200.03710.02
5.1.50.0200.03010.02
5.1.40.0300.04310.03
5.1.30.0200.04010.32
5.1.20.0200.05710.47
5.1.10.0230.03310.19
5.1.00.0200.02310.16
5.0.50.0070.0339.99
5.0.40.0070.0239.99
5.0.30.0100.0339.99
5.0.20.0130.0279.99
5.0.10.0130.0309.99
5.0.00.0170.0309.99
4.4.90.0170.0209.99
4.4.80.0130.0339.99
4.4.70.0170.0279.99
4.4.60.0130.0339.99
4.4.50.0130.0339.99
4.4.40.0070.0279.99
4.4.30.0100.0279.99
4.4.20.0130.0339.99
4.4.10.0070.0179.99
4.4.00.0070.0409.99
4.3.110.0100.0179.99
4.3.100.0070.0279.99
4.3.90.0100.0209.99
4.3.80.0070.0339.99
4.3.70.0170.0309.99
4.3.60.0130.0279.99
4.3.50.0170.0339.99
4.3.40.0070.0409.99
4.3.30.0030.0239.99
4.3.20.0070.0179.99
4.3.10.0100.0209.99
4.3.00.0030.0239.99

preferences:
43.7 ms | 401 KiB | 5 Q