3v4l.org

run code in 300+ PHP versions simultaneously
<?php $myfile = fopen("newfile.php", "w") or die("Unable to open file!"); $txt = "<?php require('fpdf.php'); \$pdf = new FPDF(); \$pdf->AddPage(); \$pdf->SetFont('Arial','B',16); \$pdf->Cell(40,10,'{$_POST['customerName']}'); \$pdf->Output(); ?>"; echo $txt; fwrite($myfile, $txt); $txt = "Minnie Mouse\n"; fwrite($myfile, $txt); fclose($myfile); ?>

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.00418.43
8.3.50.0150.00016.38
8.3.40.0070.00718.79
8.3.30.0120.00318.70
8.3.20.0040.00420.15
8.3.10.0040.00421.88
8.3.00.0000.00822.46
8.2.180.0150.00318.55
8.2.170.0140.00722.96
8.2.160.0100.00319.29
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0000.00826.16
8.2.120.0050.00220.94
8.2.110.0070.00320.56
8.2.100.0040.00717.78
8.2.90.0120.00017.63
8.2.80.0080.00018.05
8.2.70.0000.00817.91
8.2.60.0070.00018.03
8.2.50.0040.00418.10
8.2.40.0030.00620.60
8.2.30.0040.00419.25
8.2.20.0020.00517.98
8.2.10.0050.00218.16
8.2.00.0070.00018.25
8.1.280.0070.01125.92
8.1.270.0060.00323.92
8.1.260.0040.00426.35
8.1.250.0100.00028.09
8.1.240.0090.00622.08
8.1.230.0060.00622.16
8.1.220.0000.00817.74
8.1.210.0000.00818.77
8.1.200.0060.00317.35
8.1.190.0080.00017.23
8.1.180.0000.00918.10
8.1.170.0040.00418.71
8.1.160.0000.00718.92
8.1.150.0000.00720.20
8.1.140.0070.00019.51
8.1.130.0000.00717.80
8.1.120.0070.00017.46
8.1.110.0080.00017.46
8.1.100.0000.00817.35
8.1.90.0040.00417.34
8.1.80.0040.00417.31
8.1.70.0030.00317.51
8.1.60.0040.00417.53
8.1.50.0000.00717.54
8.1.40.0050.00517.54
8.1.30.0040.00417.68
8.1.20.0040.00417.73
8.1.10.0040.00417.42
8.1.00.0000.00817.48
8.0.300.0060.00319.77
8.0.290.0080.00016.88
8.0.280.0020.00518.53
8.0.270.0070.00017.33
8.0.260.0040.00416.88
8.0.250.0040.00417.14
8.0.240.0040.00417.01
8.0.230.0000.00717.16
8.0.220.0070.00017.03
8.0.210.0030.00316.89
8.0.200.0060.00017.06
8.0.190.0040.00417.06
8.0.180.0000.00817.09
8.0.170.0040.00417.10
8.0.160.0050.00317.06
8.0.150.0000.00816.87
8.0.140.0040.00416.93
8.0.130.0000.00613.43
8.0.120.0070.00016.98
8.0.110.0030.00317.07
8.0.100.0000.00817.00
8.0.90.0000.00817.08
8.0.80.0070.01417.06
8.0.70.0040.00417.07
8.0.60.0000.00717.15
8.0.50.0000.00817.10
8.0.30.0100.00717.09
8.0.20.0100.01617.40
8.0.10.0030.00616.95
8.0.00.0070.01216.80
7.4.330.0030.00315.55
7.4.320.0060.00016.61
7.4.300.0000.00616.46
7.4.290.0070.00016.61
7.4.280.0030.00416.60
7.4.270.0000.00716.62
7.4.260.0070.00316.65
7.4.250.0070.00016.50
7.4.240.0040.00416.68
7.4.230.0040.00416.60
7.4.220.0170.00016.63
7.4.210.0070.01216.54
7.4.200.0040.00416.72
7.4.160.0150.00216.45
7.4.150.0090.01517.40
7.4.140.0100.01117.86
7.4.130.0090.00916.43
7.4.120.0120.00716.49
7.4.110.0090.00916.41
7.4.100.0040.01316.48
7.4.90.0090.00916.69
7.4.80.0110.00719.39
7.4.70.0070.01016.26
7.4.60.0070.01316.44
7.4.50.0030.01016.55
7.4.40.0120.00916.57
7.4.30.0070.01016.54
7.4.00.0070.01115.23
7.3.330.0000.00713.15
7.3.320.0050.00012.98
7.3.310.0070.00016.10
7.3.300.0000.00616.30
7.3.290.0030.00516.20
7.3.280.0050.01016.26
7.3.270.0060.01217.40
7.3.260.0140.00316.30
7.3.240.0100.00816.50
7.3.230.0170.00016.45
7.3.210.0100.00716.43
7.3.200.0070.01116.28
7.3.190.0170.00316.49
7.3.180.0000.01716.22
7.3.170.0090.00916.27
7.3.160.0110.00616.29
7.2.330.0000.01716.42
7.2.320.0120.00916.66
7.2.310.0090.00916.60
7.2.300.0220.00216.51
7.2.290.0090.00616.67
7.2.60.0110.00616.71
7.2.00.0000.01219.05
7.1.200.0120.00615.86
7.1.70.0070.00016.86
7.1.60.0030.00817.27
7.1.50.1730.08038.71
7.1.40.1530.01032.40
7.1.30.1830.00732.57
7.1.20.1200.01732.57
7.1.10.1400.01014.48
7.1.00.1570.00714.70
7.0.200.0000.01816.83
7.0.190.1900.08320.21
7.0.180.0670.00314.25
7.0.170.1970.01714.29
7.0.160.1530.01014.24
7.0.150.1930.01014.27
7.0.140.1630.00714.34
7.0.130.1330.01314.45
7.0.120.1770.01014.49
7.0.110.1700.01714.29
7.0.100.2030.00314.10
7.0.90.1430.00714.26
7.0.80.1530.01014.38
7.0.70.2870.01014.32
7.0.60.1900.00313.95
7.0.50.1500.01314.46
7.0.40.1300.00714.65
7.0.30.1500.01014.41
7.0.20.2270.01014.49
7.0.10.2370.01314.48
7.0.00.1900.01014.52

preferences:
29.57 ms | 400 KiB | 5 Q