3v4l.org

run code in 300+ PHP versions simultaneously
<?php $file = '/dev/urandom'; $handle = fopen($file, 'r'); $files = array(); while ( TRUE ) { $data = base64_encode(fread($handle, 200)); $tmp = tmpfile(); fwrite($tmp, 'hello'); // Store the file pointer so that it isn't freed // right away. $files[] = $tmp; }

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.0170.00318.30
8.3.50.0260.00521.93
8.3.40.0120.00318.84
8.3.30.0130.00319.21
8.3.20.0110.00420.34
8.3.10.0030.00623.66
8.3.00.0080.00020.90
8.2.180.0060.01218.48
8.2.170.0040.01222.96
8.2.160.0100.00320.39
8.2.150.0080.00024.18
8.2.140.0060.01324.66
8.2.130.0040.00426.16
8.2.120.0040.00420.90
8.2.110.0110.00020.95
8.2.100.0080.00617.72
8.2.90.0050.00319.22
8.2.80.0030.00517.97
8.2.70.0060.00317.63
8.2.60.0040.00417.80
8.2.50.0000.00818.10
8.2.40.0040.00420.63
8.2.30.0070.00018.08
8.2.20.0040.00417.72
8.2.10.0040.00418.07
8.2.00.0030.00617.74
8.1.280.0060.00925.92
8.1.270.0030.00623.97
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0090.00023.88
8.1.230.0070.00419.23
8.1.220.0040.00417.74
8.1.210.0060.00318.77
8.1.200.0070.00417.23
8.1.190.0030.00617.53
8.1.180.0000.00818.10
8.1.170.0080.00018.75
8.1.160.0070.00022.09
8.1.150.0050.00318.59
8.1.140.0040.00417.40
8.1.130.0000.00717.80
8.1.120.0040.00317.41
8.1.110.0080.00017.32
8.1.100.0070.00017.47
8.1.90.0070.00017.26
8.1.80.0020.00517.36
8.1.70.0000.00717.34
8.1.60.0040.00417.50
8.1.50.0040.00417.42
8.1.40.0040.00417.50
8.1.30.0050.00317.60
8.1.20.0000.00717.58
8.1.10.0070.00017.52
8.1.00.0040.00417.38
8.0.300.0040.00418.77
8.0.290.0070.00016.88
8.0.280.0000.00718.45
8.0.270.0070.00017.26
8.0.260.0000.00717.19
8.0.250.0000.00717.00
8.0.240.0000.00717.04
8.0.230.0070.00017.01
8.0.220.0030.00316.89
8.0.210.0000.00817.01
8.0.200.0000.00717.03
8.0.190.0000.00817.05
8.0.180.0040.00416.87
8.0.170.0000.00816.89
8.0.160.0030.00316.96
8.0.150.0040.00416.86
8.0.140.0050.00316.95
8.0.130.0300.00314.54
8.0.120.0000.00816.95
8.0.110.0000.00717.02
8.0.100.0000.00716.82
8.0.90.0000.00816.85
8.0.80.0100.00616.96
8.0.70.0040.00416.78
8.0.60.0040.00416.80
8.0.50.0040.00416.79
8.0.30.0070.01517.06
8.0.20.0140.00517.40
8.0.10.0080.00016.87
8.0.00.0120.00616.75
7.4.330.0140.01015.00
7.4.320.0100.00016.64
7.4.300.0110.00016.52
7.4.290.0070.00416.54
7.4.280.0090.00316.55
7.4.270.0060.00616.52
7.4.260.0160.00016.55
7.4.250.0000.01016.48
7.4.240.0050.00516.58
7.4.230.0110.00016.71
7.4.220.0320.00316.55
7.4.210.0190.01616.58
7.4.200.0030.00916.43
7.4.190.0100.00016.75
7.4.160.0160.02016.81
7.4.150.0250.01617.40
7.4.140.0220.01517.86
7.4.130.0360.01916.55
7.4.120.0250.01316.63
7.4.110.0230.02316.58
7.4.100.0270.01416.57
7.4.90.0210.01216.60
7.4.80.0200.01719.39
7.4.70.0240.01416.57
7.4.60.0180.01416.64
7.4.50.0090.00916.92
7.4.40.0250.01216.63
7.4.30.0230.00816.63
7.3.330.0340.00314.48
7.3.320.0270.00314.44
7.3.310.0070.00416.36
7.3.300.0080.00316.48
7.3.290.0070.02116.54
7.3.280.0190.01316.50
7.3.270.0320.01217.40
7.3.260.0220.01416.32
7.3.250.0200.01516.49
7.3.240.0240.02116.71
7.3.230.0130.02016.54
7.3.210.0250.00616.62
7.3.200.0240.01719.39
7.3.190.0070.02116.63
7.3.180.0200.01016.43
7.3.170.0170.01016.34
7.3.160.0220.01316.52
7.2.330.0250.00816.60
7.2.320.0150.02216.76
7.2.310.0120.02016.79
7.2.300.0300.01116.69
7.2.290.0220.01616.74
7.2.100.0440.00914.89
7.2.90.0830.00914.95
7.2.80.1410.00715.13
7.2.70.0700.00915.07
7.2.60.0580.01514.77
7.2.50.0710.00314.76
7.2.40.0220.00914.90
7.2.30.0670.01715.11
7.2.20.0640.01615.07
7.2.10.0850.01415.32
7.2.00.0580.01214.95
7.1.220.1130.00314.07
7.1.210.0820.01214.10
7.1.200.2000.01213.94
7.1.190.0850.00713.89
7.1.180.1640.00613.89
7.1.170.0650.00713.62
7.1.160.0800.00314.23
7.1.150.1300.00614.31
7.1.140.0660.01014.20
7.1.130.0670.00914.14
7.1.120.0740.01014.12
7.1.110.0870.00914.28
7.1.100.0660.00713.93
7.1.90.0950.01014.57
7.1.80.0860.02114.13
7.1.70.0810.00314.33
7.1.60.1000.00332.46
7.1.50.0900.01632.43
7.1.40.0920.01332.61
7.1.30.1460.00632.26
7.1.20.0890.01432.38
7.1.10.0170.00713.92
7.1.00.0770.00613.60
7.0.310.0860.00613.87
7.0.300.0680.00313.78
7.0.290.0570.01113.72
7.0.280.0770.00313.82
7.0.270.0680.01013.76
7.0.260.0610.00613.80
7.0.250.0690.00313.81
7.0.240.0700.01113.63
7.0.230.0600.00613.97
7.0.220.0850.01014.04
7.0.210.0800.00913.67
7.0.200.0080.01614.01
7.0.190.0810.01414.27
7.0.180.0910.00013.89
7.0.170.0210.00713.84
7.0.160.0700.01113.91
7.0.150.0810.00313.66
7.0.140.0740.00313.89
7.0.130.0910.01113.98
7.0.120.0450.01414.00
7.0.110.0950.00614.14
7.0.100.0910.01613.60
7.0.90.0820.00613.77
7.0.80.1040.01214.24
7.0.70.0940.00313.79
7.0.60.0950.00014.05
7.0.50.0310.00714.04
7.0.40.0900.00614.01
7.0.30.0870.00614.21
7.0.20.0830.00313.91
7.0.10.0800.00713.69
7.0.00.1020.00613.81
5.6.380.0170.00714.32
5.6.370.0190.00814.73
5.6.360.0190.01414.51
5.6.350.0170.01714.63
5.6.340.0220.01015.01
5.6.330.0210.00614.89
5.6.320.0290.00715.09
5.6.310.0110.01114.93
5.6.300.0200.01314.73
5.6.290.0220.00614.83
5.6.280.0270.00014.41
5.6.270.0150.02214.70
5.6.260.0240.01015.18
5.6.250.0120.00914.90
5.6.240.0170.01114.24
5.6.230.0090.01514.32
5.6.220.0240.00914.68
5.6.210.0180.00514.55
5.6.200.0200.00714.84
5.6.190.0190.01114.61
5.6.180.0090.01514.26
5.6.170.0150.02314.57
5.6.160.0150.00914.42
5.6.150.0200.00314.74
5.5.380.0440.00913.60
5.5.370.0370.01613.60
5.5.360.0390.02213.60
5.5.350.0540.00713.60
5.5.340.0350.01913.60
5.5.330.0430.01413.60
5.5.320.0320.02613.60
5.5.310.0340.01813.60

preferences:
37 ms | 401 KiB | 5 Q