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,"Hello World!"); $pdf->Output(); ?>'; 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.00718.43
8.3.50.0120.00316.61
8.3.40.0110.00719.02
8.3.30.0090.00618.69
8.3.20.0040.00420.29
8.3.10.0080.00021.89
8.3.00.0000.00822.36
8.2.180.0140.00718.79
8.2.170.0100.01018.84
8.2.160.0130.00022.96
8.2.150.0100.00024.18
8.2.140.0110.00024.66
8.2.130.0000.00720.39
8.2.120.0080.00026.35
8.2.110.0140.00320.96
8.2.100.0070.00418.03
8.2.90.0000.00819.23
8.2.80.0050.00317.97
8.2.70.0000.00817.49
8.2.60.0030.00617.77
8.2.50.0040.00418.10
8.2.40.0040.00420.51
8.2.30.0000.00719.12
8.2.20.0000.00818.13
8.2.10.0080.00018.13
8.2.00.0040.00418.25
8.1.280.0070.01025.92
8.1.270.0120.00323.99
8.1.260.0070.00026.35
8.1.250.0080.00028.09
8.1.240.0090.00020.99
8.1.230.0040.00818.93
8.1.220.0050.00317.74
8.1.210.0040.00418.77
8.1.200.0000.00817.48
8.1.190.0050.00317.23
8.1.180.0000.00818.10
8.1.170.0080.00018.57
8.1.160.0040.00418.92
8.1.150.0030.00520.17
8.1.140.0040.00419.48
8.1.130.0000.00718.93
8.1.120.0000.00717.37
8.1.110.0030.00517.54
8.1.100.0040.00417.53
8.1.90.0020.00517.49
8.1.80.0040.00417.46
8.1.70.0040.00417.46
8.1.60.0000.00817.66
8.1.50.0040.00417.54
8.1.40.0030.00617.51
8.1.30.0000.00717.69
8.1.20.0030.00517.71
8.1.10.0030.00517.53
8.1.00.0040.00417.32
8.0.300.0040.00420.04
8.0.290.0040.00416.75
8.0.280.0000.00718.62
8.0.270.0030.00317.21
8.0.260.0040.00419.02
8.0.250.0000.00717.00
8.0.240.0000.00817.09
8.0.230.0000.00717.02
8.0.220.0030.00316.97
8.0.210.0000.00617.02
8.0.200.0020.00517.11
8.0.190.0080.00016.97
8.0.180.0040.00417.04
8.0.170.0000.00817.13
8.0.160.0040.00417.12
8.0.150.0000.00717.01
8.0.140.0000.00717.05
8.0.130.0060.00013.45
8.0.120.0050.00217.07
8.0.110.0000.00716.98
8.0.100.0000.00716.94
8.0.90.0050.00217.00
8.0.80.0110.00416.99
8.0.70.0050.00316.88
8.0.60.0000.00717.03
8.0.50.0000.00717.07
8.0.30.0100.00516.99
8.0.20.0120.00817.40
8.0.10.0000.00717.21
8.0.00.0100.00816.74
7.4.330.0000.00515.55
7.4.320.0030.00316.39
7.4.300.0030.00316.53
7.4.290.0000.00716.46
7.4.280.0040.00416.65
7.4.270.0070.00016.64
7.4.260.0000.00716.61
7.4.250.0000.00716.59
7.4.240.0070.00016.59
7.4.230.0030.00316.48
7.4.220.0100.00716.39
7.4.210.0120.00616.60
7.4.200.0040.00416.62
7.4.160.0160.00116.54
7.4.150.0150.00617.40
7.4.140.0100.00817.86
7.4.130.0150.00316.53
7.4.120.0140.01016.56
7.4.110.0140.00416.68
7.4.100.0100.00816.45
7.4.90.0100.01316.53
7.4.80.0150.00619.39
7.4.70.0070.01516.69
7.4.60.0150.00616.69
7.4.50.0090.00816.39
7.4.40.0040.01516.61
7.4.30.0030.01416.52
7.4.10.0070.01115.55
7.4.00.0070.00915.29
7.3.330.0030.00313.10
7.3.320.0000.00513.01
7.3.310.0060.00316.24
7.3.300.0060.00016.34
7.3.290.0000.00716.31
7.3.280.0080.00916.28
7.3.270.0110.00617.40
7.3.260.0080.01216.29
7.3.240.0110.00916.22
7.3.230.0080.00816.21
7.3.210.0100.01016.29
7.3.200.0180.00016.59
7.3.190.0090.00916.51
7.3.180.0030.01216.23
7.3.170.0060.01016.30
7.3.160.0080.00816.23
7.3.130.0060.01315.29
7.3.120.0080.00915.28
7.3.110.0060.01115.27
7.3.100.0070.00715.04
7.3.90.0080.01115.25
7.3.80.0090.00815.17
7.3.70.0070.00615.21
7.3.60.0070.00815.24
7.3.50.0020.01015.20
7.3.40.0040.00915.22
7.3.30.0110.00515.21
7.3.20.0080.00616.99
7.3.10.0030.01216.97
7.3.00.0070.00616.80
7.2.330.0060.01616.55
7.2.320.0150.00316.55
7.2.310.0100.00616.83
7.2.300.0190.00416.64
7.2.290.0080.00816.55
7.2.260.0050.01215.56
7.2.250.0060.01315.50
7.2.240.0100.00615.50
7.2.230.0080.01015.38
7.2.220.0080.00715.45
7.2.210.0030.01115.52
7.2.200.0060.00915.36
7.2.190.0050.00915.35
7.2.180.0020.00915.53
7.2.170.0120.00415.56
7.2.160.0050.01115.24
7.2.150.0070.00617.39
7.2.140.0080.00717.42
7.2.130.0060.00917.34
7.2.120.0090.00417.07
7.2.110.0060.00817.25
7.2.100.0050.01017.40
7.2.90.0070.00917.24
7.2.80.0030.01017.21
7.2.70.0080.00517.15
7.2.60.0080.00717.15
7.2.50.0070.00817.28
7.2.40.0070.01017.28
7.2.30.0070.00617.37
7.2.20.0050.00717.21
7.2.10.0090.00617.18
7.2.00.0060.00817.52
7.1.330.0080.00816.30
7.1.320.0070.00716.10
7.1.310.0070.00716.06
7.1.300.0040.00916.24
7.1.290.0050.01116.30
7.1.280.0060.00916.18
7.1.270.0070.00716.13
7.1.260.0100.00616.17
7.1.250.0080.00315.94
7.1.240.0080.00716.09
7.1.230.0040.00916.15
7.1.220.0050.00816.23
7.1.210.0030.01116.16
7.1.200.0060.00816.09
7.1.190.0050.00716.15
7.1.180.0060.00716.22
7.1.170.0070.00716.13
7.1.160.0030.00916.12
7.1.150.0050.00716.19
7.1.140.0090.00216.25
7.1.130.0090.00516.11
7.1.120.0070.00716.29
7.1.110.0040.00916.34
7.1.100.0050.00616.23
7.1.90.0060.00616.19
7.1.80.0010.01116.16
7.1.70.0020.00816.33
7.1.60.0050.00616.47
7.1.50.0230.01921.85
7.1.40.0250.00720.31
7.1.30.0230.01120.21
7.1.20.0240.01120.14
7.1.10.0270.00415.81
7.1.00.0180.00615.71
7.0.330.0050.00815.75
7.0.320.0040.01015.83
7.0.310.0060.00515.76
7.0.300.0030.00915.78
7.0.290.0040.00815.76
7.0.280.0040.00615.73
7.0.270.0060.00615.63
7.0.260.0040.01015.86
7.0.250.0040.00915.97
7.0.240.0040.00715.88
7.0.230.0050.00815.94
7.0.220.0050.00615.93
7.0.210.0020.00815.82
7.0.200.0050.00916.12
7.0.190.0180.01717.07
7.0.180.0390.00515.39
7.0.170.0210.00915.48
7.0.160.0180.00715.44
7.0.150.0180.00615.40
7.0.140.0160.00815.36
7.0.130.0220.00415.50
7.0.120.0130.00815.57
7.0.110.0150.00615.48
7.0.100.0140.00715.33
7.0.90.0160.00815.53
7.0.80.0270.01015.40
7.0.70.0150.00715.39
7.0.60.0170.00815.40
7.0.50.0170.01015.46
7.0.40.0150.00814.00
7.0.30.0180.01013.97
7.0.20.0180.00913.99
7.0.10.0190.00914.00
7.0.00.0270.01014.03
5.6.400.0050.01114.72
5.6.390.0070.00514.94
5.6.380.0090.00514.97
5.6.370.0060.00814.77
5.6.360.0070.00814.80
5.6.350.0070.00914.77
5.6.340.0060.00814.92
5.6.330.0060.01014.70
5.6.320.0060.00814.88
5.6.310.0090.00814.78
5.6.300.0070.00814.95
5.6.290.0060.01014.94
5.6.280.0040.01114.84
5.6.270.0040.00814.69
5.6.260.0060.00714.75
5.6.250.0060.00714.67
5.6.240.0070.00614.79
5.6.230.0060.00814.68
5.6.220.0050.00814.76
5.6.210.0040.01214.61
5.6.200.0070.00814.73
5.6.190.0030.00814.79
5.6.180.0070.00614.79
5.6.170.0070.00514.71
5.6.160.0040.00814.83
5.6.150.0050.00814.77
5.6.140.0030.00814.87
5.6.130.0080.00614.80
5.6.120.0090.00614.71
5.6.110.0060.00714.95
5.6.100.0060.00414.71
5.6.90.0070.00414.79
5.6.80.0010.00914.59
5.6.70.0060.00714.83
5.6.60.0080.00614.61
5.6.50.0040.01014.51
5.6.40.0090.00614.53
5.6.30.0070.00714.75
5.6.20.0010.01214.60
5.6.10.0060.00614.75
5.6.00.0040.01114.62

preferences:
36.28 ms | 401 KiB | 5 Q