3v4l.org

run code in 300+ PHP versions simultaneously
<?php $myfile = fopen("newfile.txt", "w") or die("Unable to open file!"); $txt = "John Doe\n"; fwrite($myfile, $txt); $txt = "Jane Doe\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.0120.00616.63
8.3.50.0120.00721.95
8.3.40.0170.00318.84
8.3.30.0100.00719.22
8.3.20.0060.00320.39
8.3.10.0040.00421.91
8.3.00.0050.00319.25
8.2.180.0140.00718.41
8.2.170.0110.00422.96
8.2.160.0030.01020.38
8.2.150.0050.00324.18
8.2.140.0070.00024.66
8.2.130.0000.00826.16
8.2.120.0030.00519.48
8.2.110.0000.00919.06
8.2.100.0120.00017.38
8.2.90.0080.00019.28
8.2.80.0040.00417.97
8.2.70.0050.00317.75
8.2.60.0040.00418.05
8.2.50.0000.00818.07
8.2.40.0040.00418.16
8.2.30.0050.00518.17
8.2.20.0000.00817.84
8.2.10.0050.00318.11
8.2.00.0040.00417.79
8.1.280.0100.01025.92
8.1.270.0070.00318.82
8.1.260.0050.00226.35
8.1.250.0050.00228.09
8.1.240.0040.00422.20
8.1.230.0090.00317.54
8.1.220.0000.00817.78
8.1.210.0000.00918.77
8.1.200.0070.00417.35
8.1.190.0000.00817.35
8.1.180.0000.00718.10
8.1.170.0080.00020.50
8.1.160.0000.00922.07
8.1.150.0040.00418.90
8.1.140.0050.00217.47
8.1.130.0070.00017.79
8.1.120.0050.00217.50
8.1.110.0040.00417.48
8.1.100.0040.00317.45
8.1.90.0040.00317.37
8.1.80.0040.00417.37
8.1.70.0000.00717.48
8.1.60.0050.00317.59
8.1.50.0030.00617.50
8.1.40.0000.00817.52
8.1.30.0030.00517.55
8.1.20.0000.00717.60
8.1.10.0050.00217.50
8.1.00.0090.00017.34
8.0.300.0000.00718.77
8.0.290.0080.00016.63
8.0.280.0000.00718.43
8.0.270.0030.00317.20
8.0.260.0000.00617.24
8.0.250.0000.00717.11
8.0.240.0090.00017.07
8.0.230.0050.00317.14
8.0.220.0070.00016.91
8.0.210.0030.00517.04
8.0.200.0000.00617.11
8.0.190.0060.00317.01
8.0.180.0040.00417.04
8.0.170.0000.00817.09
8.0.160.0030.00617.11
8.0.150.0070.00016.93
8.0.140.0040.00416.89
8.0.130.0020.00513.39
8.0.120.0080.00016.94
8.0.110.0070.00017.03
8.0.100.0000.00717.06
8.0.90.0040.00416.92
8.0.80.0060.00917.00
8.0.70.0050.00316.85
8.0.60.0030.00617.06
8.0.50.0050.00216.89
8.0.30.0130.00617.03
8.0.20.0110.00817.40
8.0.10.0070.00017.04
8.0.00.0030.01316.76
7.4.330.0040.00415.03
7.4.320.0030.00316.61
7.4.300.0030.00316.61
7.4.290.0040.00416.61
7.4.280.0060.00516.50
7.4.270.0030.00316.66
7.4.260.0070.00416.58
7.4.250.0000.00816.57
7.4.240.0050.00316.45
7.4.230.0030.00316.42
7.4.220.0060.01516.50
7.4.210.0060.01216.61
7.4.200.0050.00216.61
7.4.160.0080.00816.41
7.4.150.0100.00717.40
7.4.140.0220.00217.86
7.4.130.0130.00616.54
7.4.120.0120.00716.41
7.4.110.0140.00816.45
7.4.100.0100.01016.47
7.4.90.0090.00916.63
7.4.80.0050.01317.98
7.4.70.0090.00916.53
7.4.60.0070.01416.43
7.4.50.0030.00916.33
7.4.40.0090.00616.33
7.4.30.0100.00716.44
7.4.20.0040.01316.03
7.4.10.0000.01716.37
7.4.00.0120.00515.28
7.3.330.0050.00013.01
7.3.320.0120.00013.12
7.3.310.0050.00316.23
7.3.300.0070.00016.21
7.3.290.0050.01116.27
7.3.280.0070.01016.32
7.3.270.0140.00317.40
7.3.260.0030.01416.23
7.3.250.0090.00916.36
7.3.240.0100.00716.21
7.3.230.0120.01116.33
7.3.220.0130.00316.36
7.3.210.0090.00716.26
7.3.200.0100.01017.82
7.3.190.0090.00616.55
7.3.180.0110.00516.47
7.3.170.0090.00716.32
7.3.160.0050.01116.29
7.3.150.0080.00816.30
7.3.140.0160.00316.19
7.3.130.0070.01016.13
7.3.120.0040.01115.40
7.3.110.0050.00915.51
7.3.100.0140.00915.58
7.3.90.0090.00615.41
7.3.80.0080.01015.52
7.3.70.0070.00815.30
7.3.60.0060.01215.51
7.3.50.0110.00515.51
7.3.40.0070.00915.47
7.3.30.0070.00815.48
7.3.20.0040.01315.49
7.3.10.0200.00415.53
7.3.00.0090.01015.51
7.2.340.0110.01416.68
7.2.330.0080.01216.52
7.2.320.0080.00816.54
7.2.310.0040.01316.50
7.2.300.0070.01316.53
7.2.290.0060.01016.58
7.2.280.0130.00416.53
7.2.270.0100.00716.70
7.2.260.0070.01016.61
7.2.250.0070.01115.72
7.2.240.0090.00815.92
7.2.230.0060.01115.76
7.2.220.0070.01015.73
7.2.210.0060.01215.83
7.2.200.0060.01015.90
7.2.190.0070.00915.58
7.2.180.0050.01115.63
7.2.170.0090.00715.80
7.2.160.0120.00815.68
7.2.150.0070.01415.64
7.2.140.0130.00515.77
7.2.130.0110.01015.70
7.2.120.0060.01515.88
7.2.110.0120.01015.78
7.2.100.0070.01315.74
7.2.90.0130.01015.75
7.2.80.0100.00915.79
7.2.70.0110.00815.84
7.2.60.0450.01015.52
7.2.50.0420.00815.48
7.2.40.0100.00915.67
7.2.30.0580.01015.58
7.2.20.0460.00816.14
7.2.10.0360.00916.13
7.2.00.0490.01016.06
7.1.330.0120.00614.63
7.1.320.0190.00914.64
7.1.310.0070.01114.58
7.1.300.0070.00814.78
7.1.290.0100.00514.77
7.1.280.0080.00714.46
7.1.270.0140.00414.75
7.1.260.0090.00614.66
7.1.250.0120.00614.54
7.1.240.0140.00614.72
7.1.230.0150.00614.72
7.1.220.0120.00414.68
7.1.210.0200.00814.75
7.1.200.0120.00714.92
7.1.190.0100.00814.66
7.1.180.0140.00314.67
7.1.170.0100.00914.26
7.1.160.0400.00815.37
7.1.150.0220.00815.33
7.1.140.0430.00715.58
7.1.130.0510.00615.60
7.1.120.0620.00815.68
7.1.110.0580.00715.42
7.1.100.0500.00515.33
7.1.90.0570.00715.35
7.1.80.0500.00815.32
7.1.70.0350.01015.28
7.1.60.0530.01022.54
7.1.50.0490.00922.37
7.1.40.0250.00822.28
7.1.30.0440.01022.31
7.1.20.0340.01122.29
7.1.10.0300.00715.10
7.1.00.0330.00915.05
7.0.330.0110.01014.14
7.0.320.0100.00614.41
7.0.310.0040.01614.25
7.0.300.0110.00813.67
7.0.290.0120.00914.90
7.0.280.0050.01114.42
7.0.270.0460.00815.24
7.0.260.0480.00715.40
7.0.250.0120.01015.09
7.0.240.0220.00715.07
7.0.230.0470.00815.06
7.0.220.0550.01014.92
7.0.210.0490.00714.40
7.0.200.0410.00614.90
7.0.190.0380.00715.04
7.0.180.0170.00614.87
7.0.170.0490.00814.87
7.0.160.0140.01014.82
7.0.150.0350.00814.92
7.0.140.0390.01114.95
7.0.130.0990.00914.92
7.0.120.0420.00915.00
7.0.110.0460.00714.86
7.0.100.0460.00914.86
7.0.90.0440.00614.89
7.0.80.0460.00714.90
7.0.70.0320.00914.81
7.0.60.0350.01114.79
7.0.50.0360.01014.82
7.0.40.0180.00814.85
7.0.30.0300.00814.93
7.0.20.0360.00814.99
7.0.10.0250.00914.99
7.0.00.0400.00914.93
5.6.400.0130.00615.27
5.6.390.0060.01315.24
5.6.380.0110.00915.15
5.6.370.0070.01215.13
5.6.360.0070.01214.89
5.6.350.0100.01115.07
5.6.340.0080.01215.07
5.6.330.0140.01015.03
5.6.320.0100.01215.08
5.6.310.0150.00715.11
5.6.300.0100.04018.40
5.6.290.0120.03718.43
5.6.280.0100.05018.55
5.6.270.0130.04918.62
5.6.260.0180.03918.57
5.6.250.0140.04018.52
5.6.240.0170.04518.54
5.6.230.0140.03918.56
5.6.220.0140.04518.58
5.6.210.0130.05018.43
5.6.200.0160.04318.51
5.6.190.0110.04318.52
5.6.180.0110.04018.59
5.6.170.0120.03618.50
5.6.160.0110.03618.57
5.6.150.0150.03818.52
5.6.140.0130.03818.54
5.6.130.0130.03518.57
5.6.120.0130.03918.51
5.6.110.0110.03818.49
5.6.100.0160.04318.50
5.6.90.0110.03718.52
5.6.80.0130.03618.04
5.6.70.0130.03818.11
5.6.60.0150.03518.16
5.6.50.0120.04018.02
5.6.40.0090.04318.10
5.6.30.0110.03418.13
5.6.20.0120.03718.10
5.6.10.0100.04418.06
5.6.00.0130.03918.09
5.5.380.0120.03716.47
5.5.370.0140.03916.41
5.5.360.0130.04416.53
5.5.350.0080.04316.37
5.5.340.0180.03516.75
5.5.330.0140.03716.69
5.5.320.0140.03916.71
5.5.310.0180.03616.71
5.5.300.0150.03416.73
5.5.290.0140.04116.85
5.5.280.0120.03916.79
5.5.270.0140.03916.71
5.5.260.0120.04516.66
5.5.250.0130.03616.62
5.5.240.0110.03716.37
5.5.230.0100.04316.37
5.5.220.0080.03616.38
5.5.210.0130.03216.37
5.5.200.0100.03816.31
5.5.190.0150.03116.33
5.5.180.0130.03516.35
5.5.170.0160.00614.98
5.5.160.0160.03516.34
5.5.150.0110.03416.37
5.5.140.0130.03816.37
5.5.130.0160.03716.28
5.5.120.0160.04016.36
5.5.110.0130.03716.30
5.5.100.0090.03616.20
5.5.90.0140.03516.34
5.5.80.0120.03016.21
5.5.70.0160.03116.27
5.5.60.0130.03716.26
5.5.50.0090.03716.22
5.5.40.0170.03716.27
5.5.30.0140.03716.28
5.5.20.0160.03816.23
5.5.10.0120.03716.28
5.5.00.0170.03716.12
5.4.450.0130.03716.28
5.4.440.0120.03816.29
5.4.430.0130.03616.23
5.4.420.0140.03116.32
5.4.410.0110.03816.15
5.4.400.0130.02915.95
5.4.390.0150.03216.05
5.4.380.0100.03916.11
5.4.370.0120.03216.09
5.4.360.0160.03316.04
5.4.350.0100.03416.07
5.4.340.0120.03016.09
5.4.330.0130.00511.51
5.4.320.0130.03615.95
5.4.310.0100.03216.01
5.4.300.0120.03616.08
5.4.290.0120.03415.95
5.4.280.0120.03415.93
5.4.270.0120.03715.96
5.4.260.0140.03615.98
5.4.250.0110.03316.04
5.4.240.0110.03616.05
5.4.230.0130.03916.01
5.4.220.0110.03816.10
5.4.210.0110.03316.04
5.4.200.0100.03415.99
5.4.190.0210.03315.96
5.4.180.0110.03416.02
5.4.170.0120.03716.04
5.4.160.0110.03415.94
5.4.150.0110.04116.08
5.4.140.0130.03314.63
5.4.130.0130.03114.59
5.4.120.0130.03414.68
5.4.110.0140.03214.51
5.4.100.0070.03614.61
5.4.90.0140.03814.63
5.4.80.0160.03414.59
5.4.70.0130.03214.69
5.4.60.0150.03414.66
5.4.50.0120.04214.64
5.4.40.0140.03114.61
5.4.30.0090.03514.64
5.4.20.0120.03014.55
5.4.10.0120.03514.60
5.4.00.0120.03114.41

preferences:
51.35 ms | 401 KiB | 5 Q